Skip to content

Conversation

@Tsukina-7mochi
Copy link

To prevent images from moving off-screen when users drag and zoom them, I have implemented clamping for image_pos.

notes:

  • Implementation within onmousemove was avoided because the GraphicsContext is hard to be obtained.
  • Not adjusted image_origin because the displacement of the grab position seems unsettling.

sample file

reference_viewer-v0.5.3.zip

preview

reference-viewer.mp4

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