In the Compare Window when the user pans with the left mouse button all the images pan together. To work with only one image pan with the right mouse button (ie. keep it down and move the image in the view area).
This creates an offset (displacement) between the image which was moved alone, thing which is very useful because usually the photos aren't shot in the exactly same frame, or the subject isn't in the exactly same point.
However, when we try to pan again the images together by using the left button, the offset(s) are reset.
The offset(s) should be reset when the user zooms out.
See FSViewer how it works on zooming, offsets and panning (edge cases etc.)
Compare window: Mouse engine
Moderators: helmut, XnTriq, xnview
Compare window: Mouse engine
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Compare window: Mouse engine
Support++
Also, some way to normalize zooming and panning of images of differing resolutions. Sometimes I need to compare a lo-res version to a hi-res version of the same image.
Also, some way to normalize zooming and panning of images of differing resolutions. Sometimes I need to compare a lo-res version to a hi-res version of the same image.
John
Re: Compare window: Mouse engine
First, IMHO Pierre should write somewhere (on the toolbar with the checkboxes?) or perhaps better put a 'Help' button which shows a message saying something like:JohnFredC wrote:Support++
Also, some way to normalize zooming and panning of images of differing resolutions. Sometimes I need to compare a lo-res version to a hi-res version of the same image.
"Use Left mouse button for pan, Wheel for zoom, Ctrl+Wheel for single image zoom, Right button for single image pan."
So, what do you want to do, more or less, is achievable if you have great patience.

But I don't know how many people will figure out the key+mouse combinations without someone telling them...
2nd, He needs an array of MAX_VIEWPORTS items (where currently MAX_VIEWPORTS = 4) to hold the X, Y and the Zoom Percentage for each viewport separately.
When the mouse moves with the left button pressed it will pan relatively to the previous coordinates. Take care to trim at the edges for each image separately.
When the wheel rolls it will zoom relatively to the previous zoom percentage. When the zoom for a certain image will be smaller than the "Zoom to Fit" ratio, then reset the separate X, Y, and Zoom Percentage and center the image.
Of course, the implementation details are up to him. We're interested more of the final result.

m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Compare window: Mouse engine
+1 , The shortcut "/" (fit to window) and "*" (100%) should be available too......"Use Left mouse button for pan, Wheel for zoom, Ctrl+Wheel for single image zoom, Right button for single image pan."
But I don't know how many people will figure out the key+mouse combinations without someone telling them...
XnViewMP Linux X64 - Debian - X64