Fix XY coords to be XY instead of YX

Summary: public

This fixes the ordering of methods in touch handling to take their arguments as X,Y instead of Y,X.

This is really just internal cleanup of native touch handling.

Reviewed By: andreicoman11

Differential Revision: D2703003

fb-gh-sync-id: d169436d21fd11c1a9cb251e7e0b57b2094699e4
This commit is contained in:
Dave Miller authored and facebook-github-bot-2 committed 2015-12-01 05:35:34 -08:00
1 parent d08727d99f
commit 7377fdcc70
3 files changed
+30 -32

No files matched your search

@@ -437,7 +437,7 @@ public class NativeViewHierarchyManager {
if (view == null) {
throw new JSApplicationIllegalArgumentException("Could not find view with tag " + reactTag);
}
return TouchTargetHelper.findTargetTagForTouch(touchY, touchX, (ViewGroup) view);
return TouchTargetHelper.findTargetTagForTouch(touchX, touchY, (ViewGroup) view);
}
public void setJSResponder(int reactTag, int initialReactTag, boolean blockNativeResponder) {