Skip to content

fix(isometric): smooth out camera zoom to reduce jumping#7896

Merged
h0lybyte merged 1 commit intodevfrom
trunk/smooth-zoom-1773200800
Mar 11, 2026
Merged

fix(isometric): smooth out camera zoom to reduce jumping#7896
h0lybyte merged 1 commit intodevfrom
trunk/smooth-zoom-1773200800

Conversation

@h0lybyte
Copy link
Member

Summary

  • Replaced flat additive zoom (target -= delta * 0.10) with multiplicative zoom (target *= 1.05 per notch) — feels uniform at all zoom levels
  • Reduced interpolation speed from 8.0 to 4.0 for a more gradual, less jarring easing

Test plan

  • Scroll wheel zoom in/out feels smooth and gradual
  • Zoom range still clamps correctly between 0.5x and 2.0x
  • No visible jumping on discrete scroll notch mice

Use multiplicative zoom (5% per scroll notch) instead of flat additive
delta so zoom feels uniform at all levels. Reduce interpolation speed
from 8 to 4 for a more gradual, less jarring transition.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 5884ea3 into dev Mar 11, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/smooth-zoom-1773200800 branch March 11, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant