Update the logic to check for the source of a MotionEvent

Summary: Changelog: [Internal] Update logic to check for source of MotionEvent for PointerEvents

Reviewed By: lunaleaps

Differential Revision: D41851881

fbshipit-source-id: af3a49d75fc3d58e70d210e7f93d3a6dba90d1c3
This commit is contained in:
Fredia Huya-Kouadio
2022-12-09 02:38:26 -08:00
committed by Facebook GitHub Bot
parent bc26a1b9a4
commit 4f142bf803
@@ -167,8 +167,7 @@ public class PointerEventHelper {
return true;
}
int source = motionEvent.getSource();
return source == InputDevice.SOURCE_MOUSE;
return motionEvent.isFromSource(InputDevice.SOURCE_MOUSE);
}
public static boolean isExitEvent(String eventName) {