Skip to content

Mouse Scroll Events - added support for WheelEvent, fixes #1318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 12, 2014

Conversation

pnstickne
Copy link
Contributor

  • Added support for the Wheel Event, which is the DOM3 spec.
  • Wheel Scroll Event (old non-FF) and DOM Mouse Wheel (old FF) are
    supported via a non-exported reused wrapper object, WheelEventProxy.
    The proxy methods are generated one-time dynamically but only when needed.
  • FIX: Only ONE of the mouse wheel events is listened too, newest standard first.
    This fixes a bug in FF where it would use the default DOMMouseWheel.

This should fix/address #1313

- Added support for the Wheel Event, which is the DOM3 spec.

- Wheel Scroll Event (old non-FF) and DOM Mouse Wheel (old FF) are
  supported via a non-exported reused wrapper object, WheelEventProxy.
  The proxy methods are generated one-time dynamically; future changes
  to the Mouse class (such as requiring an opt-in for mouse scroll events)
  could bypass secondary stub generation.

- FIX: Only ONE of the mouse wheel events is listened too, newest standard first.
  This fixes a bug in FF where it would use the default DOMMouseWheel.
@woutercommandeur
Copy link
Contributor

thumbsup!

- The wheel event type is now determined in by Device

- The various input checking in Device have been moved to a new function
@photonstorm
Copy link
Collaborator

Looks safe enough and useful! Merging now.

photonstorm added a commit that referenced this pull request Nov 12, 2014
Mouse Scroll Events - added support for WheelEvent, fixes
@photonstorm photonstorm merged commit 824c0e2 into phaserjs:dev Nov 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants