Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger pointer leave when active controller switched (facebook#36662)
Summary: Pull Request resolved: facebook#36662 For VR, JSPointerDispatcher skips calculating the delta of hit targets (which happens in onMove) on the frame in which the active controller is switched because the motion event is a DOWN event, not a MOVE event in that specific frame. This diff fixes the issue by just calling onMove in addition to onDown for DOWN motion events. Unfortunately we do not have separate pointer IDs for each controller. This won't change the behavior for non-hoverable pointers. For hoverable pointers, it will dispatch an extra pointer_enter if the hit path has changed between the last move event and the down event. Changelog: [Internal][Fixed] - Trigger pointer leave when active controller switched Reviewed By: lunaleaps, javache Differential Revision: D44377324 fbshipit-source-id: 948fb862075ab24f078e5cb2a0e7a8de1641ae13
- Loading branch information