Fix element inspector
Differential Revision: D2513268 fb-gh-sync-id: c0c91cc96926eb6d222c7cbc8855342e8594a09f
This commit is contained in:
parent
0de9e0104a
commit
a876b234c6
|
@ -632,8 +632,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
|||
final Callback callback) {
|
||||
mOperationsQueue.enqueueFindTargetForTouch(
|
||||
reactTag,
|
||||
point.getInt(0),
|
||||
point.getInt(1),
|
||||
Math.round(PixelUtil.toPixelFromDIP(point.getDouble(0))),
|
||||
Math.round(PixelUtil.toPixelFromDIP(point.getDouble(1))),
|
||||
callback);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import java.util.ArrayList;
|
|||
import com.facebook.react.animation.Animation;
|
||||
import com.facebook.react.animation.AnimationRegistry;
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.systrace.Systrace;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
|
@ -385,8 +385,8 @@ public class UIViewOperationQueue {
|
|||
|
||||
final int touchTargetReactTag = mNativeViewHierarchyManager.findTargetTagForTouch(
|
||||
mReactTag,
|
||||
PixelUtil.toPixelFromDIP(mTargetX) + containerX,
|
||||
PixelUtil.toPixelFromDIP(mTargetY) + containerY);
|
||||
mTargetX + containerX,
|
||||
mTargetY + containerY);
|
||||
|
||||
try {
|
||||
mNativeViewHierarchyManager.measure(
|
||||
|
|
Loading…
Reference in New Issue