This commit is contained in:
lukecurran
2020-02-13 15:30:46 -06:00
parent 5ff78e2ad2
commit 520878a8a0

View File

@ -396,16 +396,16 @@ function _getLongPressArgs(type: GestureTypes, view: View, state: GestureStateTy
}
function _getDoubleTapArgs(view: View, e: android.view.MotionEvent): DoubleTapGestureEventData {
return <DoubleTapGestureEventData>{
type: GestureTypes.doubleTap,
view: view,
android: e,
locationX: e.getX() / layout.getDisplayDensity(),
locationY: e.getY() / layout.getDisplayDensity(),
ios: undefined,
object: view,
eventName: toString(GestureTypes.doubleTap),
};
return <DoubleTapGestureEventData>{
type: GestureTypes.doubleTap,
view: view,
android: e,
locationX: e.getX() / layout.getDisplayDensity(),
locationY: e.getY() / layout.getDisplayDensity(),
ios: undefined,
object: view,
eventName: toString(GestureTypes.doubleTap),
};
}
function _getSwipeArgs(direction: SwipeDirection, view: View,