@ue-too/board / index / MAX_WHEEL_ZOOM_FACTOR
變數: MAX_WHEEL_ZOOM_FACTOR
constMAX_WHEEL_ZOOM_FACTOR:1.25=1.25
定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:226
Largest zoom change a single wheel event may make: ×1.25 in, ÷1.25 out.
備註
The camera rig applies a zoom delta additively (zoom + delta·zoom), and a standard Windows wheel notch is deltaY = 100, so a delta linear in deltaY can take a single zoom-out notch to a zoom ≤ 0. KmtIdleState instead treats the scaled wheel delta as a log step (delta = exp(step) − 1), which keeps the zoom positive and in/out symmetric, and caps the step at this factor so one event is bounded whatever deltaY the platform reports. Small trackpad/pinch deltas are effectively unchanged.