-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix/add tests for existing dblclick-zoom functionality * Add tests for existing dbltap-zoom functionality * Prevent dbltap-zoom if touch points differ, add test * Trigger dbltap-zoom on second touchend, add tests * Increase double-tap maxDelta to 30 * Prevent duplicate zoom on dblclick if double-tap zoom is triggered * Address review comments from @mourner & @asheemmamoowala - Use proper Point obj w/ .dist() method - Remove touchcancel handler on touchend - Attach touchend/cancel handlers with .once() - Move distance threshold to top-level constant, add doc comment - Refactor tests to avoid repetition * Clarify comments re passing touchstart vs. -end event * Fix type-only import
- Loading branch information
Anjana Sofia Vakil
authored
Apr 9, 2019
1 parent
f830904
commit f705fd2
Showing
2 changed files
with
191 additions
and
4 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