refact: locationX/locationY -> getX()/getY()

This commit is contained in:
lukecurran
2020-03-06 10:25:37 -06:00
parent 6668468ada
commit 46628ffdb1
3 changed files with 6 additions and 6 deletions

View File

@ -400,8 +400,8 @@ function _getDoubleTapArgs(view: View, e: android.view.MotionEvent): DoubleTapGe
type: GestureTypes.doubleTap,
view: view,
android: e,
locationX: e.getX() / layout.getDisplayDensity(),
locationY: e.getY() / layout.getDisplayDensity(),
getX: () => e.getX() / layout.getDisplayDensity(),
getY: () => e.getY() / layout.getDisplayDensity(),
ios: undefined,
object: view,
eventName: toString(GestureTypes.doubleTap),

View File

@ -216,8 +216,8 @@ export interface PinchGestureEventData extends GestureEventDataWithState {
* Provides gesture event data for double tap gesture.
*/
export interface DoubleTapGestureEventData extends GestureEventData {
locationX: number;
locationY: number;
getX(): number;
getY(): number;
}
/**

View File

@ -309,8 +309,8 @@ function _getDoubleTapData(args: GestureEventData): DoubleTapGestureEventData {
view: args.view,
ios: args.ios,
android: undefined,
locationX: location.x,
locationY: location.y,
getX: () => location.x,
getY: () => location.y,
object: args.view,
eventName: toString(args.type)
};