diff --git a/packages/core/ui/gestures/index.ios.ts b/packages/core/ui/gestures/index.ios.ts index f17e115ba..7042e99bc 100644 --- a/packages/core/ui/gestures/index.ios.ts +++ b/packages/core/ui/gestures/index.ios.ts @@ -601,10 +601,14 @@ class TouchGestureEventData implements TouchGestureEventData { } getX(): number { - return this.getMainPointer().locationInView(this.view.nativeViewProtected).x; + const offset = this.view.nativeViewProtected.contentOffset; + const offsetX = offset ? offset.x : 0; + return this.getMainPointer().locationInView(this.view.nativeViewProtected).x - offsetX; } getY(): number { - return this.getMainPointer().locationInView(this.view.nativeViewProtected).y; + const offset = this.view.nativeViewProtected.contentOffset; + const offsetY = offset ? offset.y : 0; + return this.getMainPointer().locationInView(this.view.nativeViewProtected).y - offsetY; } }