mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-29 19:29:48 +02:00
A mouse-wheel notch arrives as deltaY 100 where a trackpad sends ~1-10; piped through the zoom curve at default sensitivity that's a ~24% jump per notch, and macOS wheel acceleration stacks them. Clamp the per-event zoom delta to +/-24 so each notch is a small predictable step. No-op for trackpads (their deltas are already under the cap), so the continuous pinch/scroll curve is unchanged.