https://bugs.winehq.org/show_bug.cgi?id=45981
Bug ID: 45981 Summary: Irfanview. Selection with mouse gets broken after zooming Product: Wine Version: 3.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: shooreek@gmail.com Distribution: Ubuntu
"Selection" is a rectangular area that you can select when image is open.
Generally there are two ways to get selection broken 1) Select some area, zoom to it, switch to fullscreen and back 2) Select some area, zoom to it, switch to next image by hitting Space key
Steps to reproduce; - Configure Irfanview in the following way: View -> Display options -> Fit only big images to desktop - Printscreen you desktop and save to file - this is image you will be working with to reproduce the bug - Open image - Create a 100x100 pixels selection with mouse - Zoom to it by clicking left mouse button - Switch to fullscreen and back by hitting Enter key twice - Try to create another selection with mouse -> it is impossible. In the Irfanview window title one can see that X coordinate is equal to image width, which is outside the window due to fitting option. Therefore X coordinate for selection is locked to 0.
It looks like mouse cursor position is not correctly restored after zooming.
Irfanview 4.51 32-bit on Ubuntu/Kubuntu 18.04