Skip to content

fix(editor): keep overlays aligned while zooming - #9

Merged
Dronquavious merged 1 commit into
mathnotes-app:mainfrom
Dronquavious:fix/zoom-object-drift
Aug 16, 2026
Merged

fix(editor): keep overlays aligned while zooming#9
Dronquavious merged 1 commit into
mathnotes-app:mainfrom
Dronquavious:fix/zoom-object-drift

Conversation

@Dronquavious

Copy link
Copy Markdown
Contributor

Summary

Fixes images and text boxes drifting away from ink when zooming a note.

The canvas already transforms its overlay layer as part of the viewport. Image and text overlays were applying the zoom scale again, causing their positions, dimensions, and text sizes to scale twice.

This change keeps overlay layout in page coordinates while retaining zoom-scale conversion for drag, resize, and crop gesture input.

Validation

  • npm run typecheck
  • Manually verified by placing ink beside images and text boxes, then zooming in and out

@Dronquavious
Dronquavious merged commit cdfbb89 into mathnotes-app:main Aug 16, 2026
1 check 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