Skip to content

[Web] Fix incorrect Tap offset#4330

Merged
m-bert merged 1 commit into
mainfrom
@mbert/fix-tap-offset
Jul 22, 2026
Merged

[Web] Fix incorrect Tap offset#4330
m-bert merged 1 commit into
mainfrom
@mbert/fix-tap-offset

Conversation

@m-bert

@m-bert m-bert commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Fixes incorrectly calculated Tap offset.

Test plan

This time I don't think it is necessary

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a bug in the web implementation of TapGestureHandler where the Y offset was computed incorrectly due to an accidental assignment instead of a subtraction. This aligns the offsetY computation with the intended delta-based behavior used elsewhere in the handler.

Changes:

  • Correct offsetY accumulation during onPointerRemove to use (lastY - startY) rather than assigning lastY to startY.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-bert
m-bert merged commit ed6e159 into main Jul 22, 2026
3 checks passed
@m-bert
m-bert deleted the @mbert/fix-tap-offset branch July 22, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants