Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUAC-1967: Remove duplicate wheel handler registrations.
Modern-day browsers abide the standardized wheel event (typed WheelEvent), however to support older browsers the legacy DOMMouseScroll (FireFox) and mousewheel (all others) events are also being registered. However modern browsers support both the wheel event as well as the legacy, which results in the wheel handler being registered multiple times. This results in the wheel handler firing twice instead of once, causing excessive scrolling. This change separates the event registration such that either the modern or the legacy events are registered, and not both.
- Loading branch information