upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorddddddddwp <ddddddddwp@users.noreply.github.com>2026-11-24 10:50:36 +0800
committerddddddddwp <ddddddddwp@users.noreply.github.com>2026-11-24 10:50:36 +0800
commitc1f343a1ae821807b013903383c5c16526f7ef4e (patch)
tree04d014ef8bcac1967356af16317f562ce423d769 /runtime/src/thread_stacks.cpp
parent84347bbb61ed406db10195f50d5911893b8b9a4b (diff)
viewer: a trackpad's sideways scroll leaves the camera speed alone (old #6256)
The free camera's wheel handler took every wheel event, so a trackpad's two-finger sideways scroll (deltaX only, deltaY 0) hit the "deltaY >= 0" branch and divided the speed by 1.15 per event. The handler now ignores an event whose horizontal component is larger than its vertical one, so a pan does not slow the camera. test_viewer_streaming.cjs drives the captured wheel handler and checks climb per frame: a sideways event keeps 4 m, a dominant horizontal diagonal keeps 4 m, and one notch up gives 4.6 m (40 m/s * 1.15 * 0.1 s).
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions