Closed Bug 1606597 Opened 5 years ago Closed 5 years ago

WheelEvent.deltaY is much lower than in Chromium

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

71 Branch
Desktop
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1392460

People

(Reporter: zdanevich.vitaly, Unassigned)

Details

Check this page (Example block) in Firefox and Chromium https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event#Examples

For consistency with Chromium (for simpler frontend web development) please adjust your deltaY value. Because now in my JS I will need to check useragent and multiply deltaY to 10 in Firefox. I cannot use scroll event because my node does not has natural scrolling. I use WheelEvent.deltaY to implement custom scrolling.

Moving over to the correct component.

Component: General → DOM: UI Events & Focus Handling
Product: Firefox → Core

I guess WheelEvent.deltaMode is not DOM_DELTA_PIXEL in Firefox.

Yes, it is. Once we do use DOM_DELTA_PIXEL, web apps cannot know raw delta value without new API.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

FYI: Accessing without deltaMode check bans your app users even they use Chrome.
https://github.com/w3c/uievents/issues/181#issuecomment-392648065

Since the example is in our document, I think we should update the example so that it takes into account deltaMode.

Thank you for deltaMode, this is new information for me.

You need to log in before you can comment on or make changes to this bug.