Ruben2776 / PicView

Fast, free and customizable image viewer for Windows 10 and 11.
https://picview.org
Other
995 stars 66 forks source link

Improve Pan & Zoom #5

Closed Ruben2776 closed 4 years ago

Ruben2776 commented 4 years ago

Improve how zooming function is handled. Currently using a modified Zoomborder.cs from https://stackoverflow.com/a/6782715/13646636 but it needs to not allow image to be dragged outside of its parent container.

Describe the solution you'd like Hopefully something that works with both vertical and horizontal scrolling when zoomed in. Currently looking at https://stackoverflow.com/a/60515117/13646636

Additional context Disable scaling (when Ctrl is held down). Don't allow it to work with normal scrolling, as that wouldn't make much sense and be too much of a head ache.

Ruben2776 commented 4 years ago

Done in commit https://github.com/Ruben2776/PicView/commit/4ec61eb0f4c940cf4cface65154b5d8f2d4cdf6a