Skip to content

Commit

Permalink
[Web] Remove hovering pointer from tracker. (#3115)
Browse files Browse the repository at this point in the history
## Description

I've noticed that in `Hover` inside `onPointerMoveOut` method we add pointer to tracker instead of removing it. While it doesn't make much difference, since tracker is reset in [this line](https://github.com/software-mansion/react-native-gesture-handler/blob/b79223de5a47773a464543018b7231113c1ade68/src/web/tools/GestureHandlerOrchestrator.ts#L28), I think it will be better to change it into removing pointer.

## Test plan

Tested on `hover` example.
  • Loading branch information
m-bert authored Sep 20, 2024
1 parent b79223d commit fbfe9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/handlers/HoverGestureHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class HoverGestureHandler extends GestureHandler {
}

protected onPointerMoveOut(event: AdaptedEvent): void {
this.tracker.addToTracker(event);
this.tracker.removeFromTracker(event.pointerId);
this.stylusData = event.stylusData;

super.onPointerMoveOut(event);
Expand Down

0 comments on commit fbfe9a7

Please sign in to comment.