Skip to content

Commit ed6e159

Browse files
authored
[Web] Fix incorrect Tap offset (#4330)
## Description Fixes incorrectly calculated `Tap` offset. ## Test plan This time I don't think it is necessary
1 parent 5fd06ba commit ed6e159

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-gesture-handler/src/web/handlers/TapGestureHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default class TapGestureHandler extends GestureHandler {
167167
this.tracker.removeFromTracker(event.pointerId);
168168

169169
this.offsetX += this.lastX - this.startX;
170-
this.offsetY += this.lastY = this.startY;
170+
this.offsetY += this.lastY - this.startY;
171171

172172
this.updateLastCoords();
173173

0 commit comments

Comments
 (0)