mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Use nanoTime instead of currentTimeMillis for events
Reviewed By: foghina Differential Revision: D2953917 fb-gh-sync-id: effd09849a5504c9eb7c684a510e616fdcfcdf6e shipit-source-id: effd09849a5504c9eb7c684a510e616fdcfcdf6e
This commit is contained in:
committed by
facebook-github-bot-7
parent
cf3bd9f9a1
commit
b5d26679c4
@@ -9,11 +9,11 @@
|
||||
|
||||
package com.facebook.react.views.scroll;
|
||||
|
||||
import android.os.SystemClock;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.common.SystemClock;
|
||||
import com.facebook.react.uimanager.UIManagerModule;
|
||||
|
||||
/**
|
||||
@@ -57,7 +57,7 @@ public class ReactScrollViewHelper {
|
||||
reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher().dispatchEvent(
|
||||
ScrollEvent.obtain(
|
||||
scrollView.getId(),
|
||||
SystemClock.uptimeMillis(),
|
||||
SystemClock.nanoTime(),
|
||||
scrollEventType,
|
||||
scrollView.getScrollX(),
|
||||
scrollView.getScrollY(),
|
||||
|
||||
Reference in New Issue
Block a user