eXeC64 / imv

Image viewer for X11/Wayland
MIT License
800 stars 57 forks source link

Slow zoom speed on large images #336

Closed ronandalton closed 3 years ago

ronandalton commented 3 years ago

When viewing a large image, the amount the image zooms in on each zoom command appears to be much smaller than what is seen with smaller sized images. Patch bfd2393f0d9c15ce4df7f86a7f594246b3db6526 was supposed to fix the issue of zooming not being constant but it looks like there are still a few problems.

ronandalton commented 3 years ago

It looks like it's because of this line: https://github.com/eXeC64/imv/blob/deb8b5a86450153b2a8abc3418b6e66691c49896/src/viewport.c#L163 I'm not sure why scale_factor is dependent on the ratio of buffer width and image width. The scale factor should only be dependent on amount.

eXeC64 commented 3 years ago

Fixed