Skip to content
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

Content bug: Missing information about what WheelEvent.delta* can be #11811

Open
ziadkh0 opened this issue Jan 7, 2022 · 0 comments
Open

Content bug: Missing information about what WheelEvent.delta* can be #11811

ziadkh0 opened this issue Jan 7, 2022 · 0 comments
Labels
area: UI Events Content:WebAPI Web API docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help! needs BCD update

Comments

@ziadkh0
Copy link

ziadkh0 commented Jan 7, 2022

What page(s) did you find the problem on?

https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode

What is the problem?

Missing information described in w3c/uievents#181 (comment)
And the change in Firefox caused by Intent to ship: Return pixel deltas in wheel event if deltaMode is not checked by authors, that modify the behavior to the following, decided per event:

  • If deltaMode has been accessed, then the original delta mode and deltas are reported.

  • If deltaMode has not been accessed, and it's DOM_DELTA_LINE, accessing any of the deltas cause the event to always report DOM_DELTA_PIXELS, and the deltas get converted to pixels using the font-size of the target element.

For more information see:

@ziadkh0 ziadkh0 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 7, 2022
@sideshowbarker sideshowbarker added Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help! effort: medium This task is a medium effort. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 7, 2022
tim-janik added a commit to tim-janik/anklang that referenced this issue Feb 8, 2024
tim-janik added a commit to tim-janik/anklang that referenced this issue Feb 8, 2024
…e and Firefox

* MOUSE-WHEEL:
  ui/util.js: remove unused wheel2scrollbars
  ui/b/pianoroll.js: reinstante hzoom and vzoom adjustments via Ctrl
  ui/util.js: use Mouse.wheel_delta()
  ui/b/knob.js: use Mouse.wheel_delta()
  ui/b/pianoroll.js: properly scroll via deltaY from Mouse.wheel_delta()
  ui/mouse.js: wheel_delta(): provide .x, .y, .z in pixels
  ui/b/app.js: defer ZMove handling to mouse.js
  ui/mouse.js: include ZMove notification handling
  ui/index.html: start mouse.js early on
  ui/mouse.js: add event_movement() and wheel_delta() to fix event coords
	Cross browser normalization of movementX,movementY and deltaX,deltaY is a hot mess, see:
	https://bugs.chromium.org/p/chromium/issues/detail?id=1092358
	https://bugzilla.mozilla.org/show_bug.cgi?id=1392460
	w3c/uievents#181
	w3c/pointerlock#42
	mdn/content#11811
  ui/index.html: disable modulepreload, it causes module errors in Firefox-122

Signed-off-by: Tim Janik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UI Events Content:WebAPI Web API docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help! needs BCD update
Projects
None yet
Development

No branches or pull requests

3 participants