Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect pointer coordinates caching
Summary: Changelog: [Internal] - Fix incorrect pointer coordinates caching In D48472486 I moved the updating of "previous" fields into the `handleHitStateDivergence` method which made sense considering that it's run on every event regardless but what I didn't take into account was the updating of the `mLastEventCoordinatesByPointerId` field. On `ACTION_HOVER_MOVE` events there's a filter that ensures that only move events that have a large enough distance are emitted (something that isn't done on iOS, hence why I didn't think of it), but after my changes in D48472486 it was updating `mLastEventCoordinatesByPointerId` **before** that hover move check, making the distance always 0 and never firing move events. This diff fixes this by moving the updating of `mLastEventCoordinatesByPointerId` and `mLastButtonState` back to the end of `handleMotionEvent`. Differential Revision: D48756372 fbshipit-source-id: a6f22a9bc33ff96880727ebd400b45b1d0c5c77f
- Loading branch information