Skip to content

Commit

Permalink
fix: ignore PointerHover event with trackpad kind (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp authored Apr 18, 2024
1 parent e75b34a commit eb127dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/hover_region.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ class _HoverRegionState extends State<HoverRegion> {
// that is never followed by PointerExitEvent. This is a workaround for that.
return;
}
if (event.kind == PointerDeviceKind.trackpad) {
// Trackpad and magic mouse on macOS. Safe to ignore.
return;
}
if (_preventNotifications) {
_pendingHover = event;
} else {
Expand Down

0 comments on commit eb127dd

Please sign in to comment.