Skip to content

Zoom feature with access to zoom value #420

Answered by idiotWu
dellyn asked this question in Q&A
Discussion options

You must be logged in to vote

Zooming is quite a difficult feature that comes with a lot of re-calculations. The following link is an (inefficient) approach I tried in a recent project, implementing a scalable image viewer in keyframe refiner. You can drag&drop an image into it and zoom it with trackpads (or holding ctrl and scrolling the mouse wheel) to see how it behaves.

Source: keyframe-refiner/src/app/views/ImageViewer.svelte#L113-L146

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dellyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants