This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swipe event: Trigger only one event per mouse sequence and let it bubble
The element to which a mousedown handler is attached by the swipe setup() code takes ownership of the next swipe event. This means that, if the same mousedown event triggers other swipe setup() -attached mousedown handlers as it bubbles, the subsequent ones will bail. Thus, if a swipe event results from the mousedown then such a swipe event will be triggered on the deepest element with an attached swipe handler, and it will be allowed to bubble from there. This provides the tools that developers can use to avoid scenarios such as the one mentioned in the referenced issue. Fixes gh-6262
- Loading branch information
Gabriel Schulhof
committed
Jan 21, 2014
1 parent
86c75da
commit 6f97d29
Showing
3 changed files
with
149 additions
and
21 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