forked from cubiq/iscroll
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving the robustness of zoom a lot!
Before, logic for recognizing zoom start was inconsistent between: - *one* touchstart event w/ *two* fingers, vs. - *two* touchstart events w/ *one* finger each. Now, the logic is consistent; the same event handlers are added, etc. Before, if the only touchmove events were with two fingers down, they were ignored completely, so the touchend handler would reset x and y, assuming no movement happened. Now, we properly recognize zoom and don't reset then. Together, these almost entirely (but not quite, argh!) eliminate the annoying bug where at the end of a pinch zoom, the content snaps to the top-left. Overall, though, the entire zooming experience is *much* better now.
- Loading branch information
Showing
1 changed file
with
41 additions
and
17 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