Skip to content

fix: preserve viewport mode during trackpad scroll#53

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix-trackpad-zoom-reset
May 18, 2026
Merged

fix: preserve viewport mode during trackpad scroll#53
DjDeveloperr merged 1 commit into
mainfrom
fix-trackpad-zoom-reset

Conversation

@DjDeveloperr
Copy link
Copy Markdown
Collaborator

Summary

  • Keep wheel/trackpad scrolling on the simulator canvas from forcing the viewport into manual mode.
  • Preserve the active fit or center zoom state when the wheel gesture is only panning, while still allowing manual zoom to pan normally.
  • Add focused unit coverage for the wheel/pan decision logic.

Testing

  • npm run --prefix client test -- viewportWheel.test.ts
  • npm run --prefix client test
  • npm run --prefix client typecheck
  • npm run --prefix client build
  • Local browser QA against the client confirmed fit and center remained active after wheel scrolling, with no console errors in the page startup path.

@DjDeveloperr DjDeveloperr marked this pull request as ready for review May 18, 2026 02:44
@DjDeveloperr DjDeveloperr merged commit 81ef205 into main May 18, 2026
7 checks passed
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