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:
Andrei Coman
2016-02-22 03:25:58 -08:00
committed by facebook-github-bot-7
parent cf3bd9f9a1
commit b5d26679c4
15 changed files with 64 additions and 71 deletions

View File

@@ -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(),