laurenashpole / vue-inner-image-zoom

https://laurenashpole.github.io/vue-inner-image-zoom
141 stars 16 forks source link

Zoom ends when mouse leaves #49

Open edwh opened 2 years ago

edwh commented 2 years ago

On desktop, if you have moveType pan, and move your mouse outside the area, then the zoom ends.

If you're zooming to look at something in the corner of the image, this is easily done by accident. It would be nice to have an option to stop this happening.

Thanks for the library.

laurenashpole commented 2 years ago

Hey @edwh, thanks for the input! Right now the zoom out is a UX choice to avoid any jumping when the user hovers back into the image but, for the next update, I'll give persisting the image a try to see how it feels in action. I'll let you know if that option makes it in.

edwh commented 2 years ago

Thank you.