jbjd / Image-Viewer-In-Python

Lightweight Image Viewer written in Python
1 stars 0 forks source link

Rework Zooming #3

Closed jbjd closed 2 months ago

jbjd commented 4 months ago

Zooming in chunks via +/- was a bad idea and I want to use the mouse wheel. The initial impediment was the lack of a clean was to do so in tkinter. I saw some code online that had a clever way of working around tkinter's limit and want to implement a similar version.

https://stackoverflow.com/questions/41656176/tkinter-canvas-zoom-move-pan

jbjd commented 3 months ago

Zooming with mouse and +/- keys are in main now. This PR will focus on making the zoom experience cleaner. The Stack Overflow page re-crops and resizes on each movement (not just zooming) and that feels like it won't work well for this scenario. It comes with slower zooming if I don't crop, but I am leaning toward that option.

jbjd commented 2 months ago

For now, slower zooming with +/- and mouse wheel I will keep.