WheelEvent.deltaY is much lower than in Chromium
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
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.
Comment 1•5 years ago
|
||
Moving over to the correct component.
Comment 2•5 years ago
|
||
I guess WheelEvent.deltaMode
is not DOM_DELTA_PIXEL
in Firefox.
Comment 3•5 years ago
|
||
Yes, it is. Once we do use DOM_DELTA_PIXEL
, web apps cannot know raw delta value without new API.
Comment 4•5 years ago
|
||
FYI: Accessing without deltaMode
check bans your app users even they use Chrome.
https://github.com/w3c/uievents/issues/181#issuecomment-392648065
Comment 5•5 years ago
|
||
Since the example is in our document, I think we should update the example so that it takes into account deltaMode
.
Reporter | ||
Comment 6•5 years ago
|
||
Thank you for deltaMode
, this is new information for me.
Description
•