mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
bc26a1b9a4
commit
4f142bf803
+1
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user