mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Don't use MotionEvent timestamp for touch events
Differential Revision: D2554905 fb-gh-sync-id: 7f83e94948cc9ac1024e249764d445fb056f400e
This commit is contained in:
committed by
facebook-github-bot-7
parent
e3f33ea261
commit
716f7e8ef2
@@ -25,8 +25,12 @@ public class TouchEvent extends Event<TouchEvent> {
|
||||
private final TouchEventType mTouchEventType;
|
||||
private final short mCoalescingKey;
|
||||
|
||||
public TouchEvent(int viewTag, TouchEventType touchEventType, MotionEvent motionEventToCopy) {
|
||||
super(viewTag, motionEventToCopy.getEventTime());
|
||||
public TouchEvent(
|
||||
int viewTag,
|
||||
long timestampMs,
|
||||
TouchEventType touchEventType,
|
||||
MotionEvent motionEventToCopy) {
|
||||
super(viewTag, timestampMs);
|
||||
mTouchEventType = touchEventType;
|
||||
mMotionEvent = MotionEvent.obtain(motionEventToCopy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user