mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
Each frame multiplied the whole-number zoom by egui's eased wheel factor and rounded, so a notch out never undid a notch in: 100 -> 122 -> 101 -> 123 -> 102. A notch now moves to the next step on WHEEL_ZOOM_LADDER (10 ... 85, 100, 120 ... 400; four per doubling, about 20% apart). A step less than 5% away is skipped, but 100% and the limits never are, so 121% out goes to 100% and 99% in goes to 100%. The wheel's turning is counted in notches: parts of a notch add up, and a notch steps once 60% of it has turned. With animations on the zoom glides to the step, and a notch turned during a glide steps on from where it's going. The status bar's Zoom In / Zoom Out keep their 10% steps; that, and whether the glide needs a setting of its own, is noted in docs/decisions.md for the maintainers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>