Skip to content

Fix/emscripten scroll normalization#165

Merged
monofuel merged 6 commits intomasterfrom
fix/emscripten-scroll-normalization
Feb 18, 2026
Merged

Fix/emscripten scroll normalization#165
monofuel merged 6 commits intomasterfrom
fix/emscripten-scroll-normalization

Conversation

@monofuel
Copy link
Collaborator

No description provided.

monofuel and others added 6 commits February 17, 2026 16:11
Raw WheelEvent.deltaX/Y values are not comparable across OS/browser
combinations. Linux browsers (Chrome/Firefox) typically report
~120px per notch in DOM_DELTA_PIXEL mode, while macOS trackpads
send small continuous values, making scroll feel ~10x too fast on
Linux web builds.

Normalize each deltaMode to target ~10 units per notch, matching
the native Linux X11 backend (fixed ±10) and macOS backend
(scrollingDeltaX/Y * 0.1 * 10 getter).

Also removes the leftover debug echo from the onWheel handler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@monofuel monofuel merged commit 2f05bc4 into master Feb 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments