-
-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Touch navigation control fixes (#1852)
* Fix compass button behavior on touch devices * Rename buttonStillPressed in the mouse handling module to buttonNoLongerPressed as this is what it is checking * Restore an accidentally deleted event listener * Added a test for resetting pitch / bearing when clicking the compass button. This also required catching an issue with prefersReducedMotion. * Add tests to change pitch / bearing by dragging the compass button * #1869 require valid node version (#1870) Resolves #1870 * #1869 require specific node version * #1869 downgrade to oldest version possible Co-authored-by: Vsevolod (Seva) Dolgopolov <zavalit@gmail.com> * Restored original prefersReducedMotion getter and replace it with a call to setMatchMedia in the navigationControl tests * Add tests to change pitch / bearing by dragging the compass button using a touch device * Refactored the touch interactions for the navigation control by creating a touch_button_pitch_rotate handler and using it's classes to handle map interactions * Rename classes for handlers when rotating / pitching using a button * Refactored compass button touch implementation with improved naming, typing, and a more compositional style * Fix type name in two_fingers_touch.ts after previous refactor * Move rotation / pitch change one touch handlers to static factory methods Co-authored-by: Moshe Jonathan Gordon Radian <moshe.gr@albosys.com> Co-authored-by: Vsevolod Dolgopolov (aka Seva) <zavalit@googlemail.com> Co-authored-by: Vsevolod (Seva) Dolgopolov <zavalit@gmail.com>
- Loading branch information
1 parent
9756943
commit 8449998
Showing
11 changed files
with
310 additions
and
59 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
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
Oops, something went wrong.