The mousewheel event once reported mouse-wheel movement in some browsers. Learn why it is deprecated and non-standard, how onmousewheel / wheelDelta worked, why Firefox never shipped it, and how to migrate to the standard wheel event—with five examples and try-it labs.
01
Kind
Instance event
02
Type
WheelEvent
03
When
Wheel operated
04
Handler
onmousewheel
05
Status
Deprecated · Non-standard
06
Modern path
wheel event
Fundamentals
Introduction
mousewheel answered: “Is the user turning a mouse wheel (or similar device) over this element?” It fired asynchronously while the wheel was operated.
Today that job belongs to the standard wheel event. MDN’s guidance is clear: treat mousewheel as obsolete history—useful for reading old code, not for shipping new products.
💡
Beginner tip
If you see onmousewheel or addEventListener("mousewheel", …) in a codebase, plan a migration to wheel and prefer deltaY / deltaX over wheelDelta.
Concept
Understanding mousewheel
An instance event (legacy) that answered: “Did the wheel turn over this element?”
Fires while a mouse wheel or similar device is operated (in supporting engines).
WheelEvent — often inspected via legacy wheelDelta* fields.
Handler — onmousewheel or addEventListener("mousewheel", ...).
Not in Firefox — MDN states Firefox never implemented mousewheel.
Deprecated & Non-standard on MDN; not part of any specification.
Foundation
📝 Syntax
Legacy listeners used the event name with addEventListener, or the handler property:
mousewheel is a deprecated, non-standard event. Logos use the shared browser-image-sprite.png sprite from this project. Firefox never implemented it. Prefer the standard wheel event everywhere.
✓ Deprecated · Non-standard
Element mousewheel
Do not build features on this event. Migrate listeners to wheel and deltaY / deltaX.
LegacyNot for new apps
Google ChromeLegacy support · prefer wheel
Avoid
Mozilla FirefoxNever implemented mousewheel
Unavailable
Apple SafariLegacy support · prefer wheel
Avoid
Microsoft EdgeLegacy Chromium path · prefer wheel
Avoid
OperaLegacy support · prefer wheel
Avoid
Internet ExplorerHistoric mousewheel support
Legacy
mousewheelDeprecated
Bottom line: Use wheel for portable scroll/zoom UX. Treat mousewheel as legacy-only documentation.
Wrap Up
Conclusion
mousewheel is a deprecated, non-standard footnote in the scroll-event story. Learn it to migrate old code; ship the standard wheel event instead.
Use addEventListener("wheel", …) for new scroll/zoom UX
Read deltaY / deltaX / deltaMode
Test trackpads and mice (gesture sizes differ)
Migrate legacy mousewheel listeners when you touch old code
Remember Firefox never had mousewheel
❌ Don’t
Build new features on mousewheel
Assume wheelDelta === ±120 everywhere
Expect Firefox to fire mousewheel
Treat non-standard events as future-proof
Overwrite onmousewheel if you still need multiple legacy listeners
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about mousewheel
Obsolete wheel signal—prefer the standard wheel event.
5
Core concepts
📱01
Wheel gesture
legacy name
Trigger
⚠️02
Deprecated
avoid new use
Status
🚫03
Non-standard
not in Firefox
Compat
📄04
wheelDelta
inconsistent
Quirk
🎯05
Use wheel
deltaY path
Modern
❓ Frequently Asked Questions
It is an obsolete, non-standard event that fired while a mouse wheel or similar device was operated. MDN marks it Deprecated and Non-standard. Prefer the standard wheel event instead.
No. Use addEventListener("wheel", …) with WheelEvent.deltaX / deltaY / deltaMode. mousewheel was never standardized and was never implemented by Firefox.
No. wheel is the standard DOM event. mousewheel is a legacy, non-standard name with inconsistent wheelDelta values across browsers and operating systems.
Historically Chromium-based browsers, Safari, Opera, and Internet Explorer shipped it. Firefox never implemented mousewheel. Do not rely on it for new code.
A WheelEvent (inherits from MouseEvent, UIEvent, and Event). Legacy code often reads wheelDelta / wheelDeltaX / wheelDeltaY.
Replace "mousewheel" listeners with "wheel". Prefer deltaY (and deltaX) over wheelDelta. Test trackpads and mice, and avoid assuming a fixed ±120 notch size.
Did you know?
MDN notes that wheelDelta meaning differs across Chrome, Safari, Opera, and operating systems—so even when mousewheel fired, apps could not rely on a single numeric scale. That inconsistency helped push the web toward the standard wheel event.