• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. WheelEvent
  4. WheelEvent.deltaX
  • Change language

Table of contents

  • Syntax
  • Example
  • Specifications
  • Browser compatibility
  • See also

WheelEvent.deltaX

The WheelEvent.deltaX read-only property is a double representing the horizontal scroll amount in the WheelEvent.deltaMode unit.

Syntax

var dX = event.deltaX;

Example

var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaX": 4, "deltaMode": 0});

console.log(syntheticEvent.deltaX);

Specifications

Specification
UI Events
# dom-wheelevent-deltax

Browser compatibility

BCD tables only load in the browser

See also

  • wheel
  • WheelEvent

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 14, 2021, by MDN contributors

Change your language

Related Topics

  1. WheelEvent
  2. Constructor
    1. WheelEvent()
  3. Properties
    1. deltaMode
    2. deltaX
    3. deltaY
    4. deltaZ
  4. Inheritance:
    1. MouseEvent
    2. UIEvent
    3. Event
  5. Related pages for DOM Events
    1. CompositionEvent
    2. Event
    3. EventListener
    4. EventTarget
    5. FocusEvent
    6. InputEvent
    7. KeyboardEvent
    8. MouseEvent
    9. MouseScrollEvent
    10. MutationEvent
    11. ProgressEvent
    12. UIEvent
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies