This repository has been archived by the owner on May 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only process each mouse up & down event once at either canvas or window
Internet explorer will only trigger mouse events at the window level. If the handler is bound to both window and canvas however, the event will be processed twice in every other browser. A solution to this is to track manually (without affecting the bubble or other features on the event) that an event has been processed, and don't process it a second time.
- Loading branch information
Showing
1 changed file
with
65 additions
and
11 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