forked from mapbox/mapbox-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue with fractional position in
click
event
looks like Chrome 89 is sending an instance of PointerEvent as a `click` event see: https://bugs.chromium.org/p/chromium/issues/detail?id=1182909 Pointer events have fractional mouse position which means that we cannot compare directly with the position stored after `mousedown` event for now use the configurable click tolerance for click events, which was added to fix unrelated problem in the longer term we should consider switching to handling PointerEvents directly see: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent see: w3c/pointerevents#100
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters