Repository navigation
Fix/viewer horizontal wheel - #6265
EchoOfCode wants to merge 3 commits into
Conversation
|
Tested b7a665d merged onto main 561b65a (Linux, Node 22.23.5, no GPU, no game files): it merges cleanly, and Overlap, for the coordinator:
Suggestion: add |
|
Thanks for testing the branch and flagging the overlap. I added the e.ctrlKey guard in 207f23c and a regression test for Ctrl+wheel in both directions. The test reproduced the speed change before the fix, and all 62 viewer streaming and studio tests now pass on Windows. This branch now covers the horizontal-scroll and browser-zoom cases from #3503. It also includes the test-fixture fix from #5692. I’ll leave it to the coordinator to decide which PRs to keep. |
|
Re-check of the new head 207f23c, merged onto main 561b65a (Linux, Node 22.23.5, no GPU, no game files): it merges cleanly, and |
Claimed in the coordination issue as :#6256
What and why
A horizontal-only scroll reduced the map viewer’s camera speed from 40 to 34.78 m/s in a single event. The wheel handler now ignores events with
deltaY === 0. Scrolling up still increases speed, and scrolling down still decreases it.Also fixed the Shift/Ctrl movement test fixture by providing the
AbortControllerand timer APIs used by the viewer’s manifest loader. This lets the test reach its keyboard movement assertions.Tested
Ran
node --test tests/test_viewer_streaming.cjson Windows. All 58 tests passed, with none skipped. The suite uses synthetic inputs and requires no GPU or driver.The new regression test failed before the fix and passed afterward. It checks horizontal scrolling and both vertical scroll directions.
AI-assisted: yes
Checklist