Open davidbrochart opened 5 months ago
Zooming is off when the image doesn't occupy the whole screen, see:
https://github.com/adamviola/textual-imageview/assets/4711805/b1fbdf58-e818-4c7b-b683-4f905b2d53b2
Probably something to do with the mouse coordinates?
set (offset.y, offset.x) to 0 in on_mouse_scroll_up & on_mouse_scroll_down seems fix the issue
Zooming is off when the image doesn't occupy the whole screen, see:
https://github.com/adamviola/textual-imageview/assets/4711805/b1fbdf58-e818-4c7b-b683-4f905b2d53b2
Probably something to do with the mouse coordinates?