Page 1 of 1

Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

Posted: Thu Mar 23, 2023 5:52 pm
by cdytoby
Subject: 1.4.3: Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

XnView: MP 1.4.3 64bits
OS: Windows 11 Pro 22H2 64bit

Always, when I want to resize the crop size, instead of resize, it rotates the crop size, because my mouse is slightly outside of the crop box. And afterwards, I can't reset the crop size rotation, I also can't control the exact degree of the rotation, because there is no input for it.

Effect: annoying, I have to cancel crop, and redo the crop process.

To reproduce:
1. Select whatever png image in XnView MP Browser tab
2. Open the image by double clicking the png file
3. Click Crop button
4. mouse hover to the control point of middle right of the crop box, the cursor shows "left-right" cursor
5. press and hold left mouse button, I expect to resize the crop box. Instead, it rotate the crop box.
6. after rotation, I can't reset the rotation to 0 degree.
Actual behaviour (bug): In step 5, the crop box rotated. And in step 6, the crop box can't be reset from rotating :bug:

Expected behaviour:
I should not able to rotate the crop box at all.
Or show the correct mouse cursor in step 4, that I'm in rotating mode.
Or show a number input box (NumbericUpDown?) with number, that controls the rotation, with the ability to set the rotation to 0.

Re: Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

Posted: Mon Apr 03, 2023 1:29 pm
by xnview
i cant reproduce your problem, mouse resizes correctly the box

Re: Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

Posted: Mon Apr 03, 2023 6:15 pm
by cdytoby
Hello, there are 8 dots on crop area, from top left to bottom right. Let's take the middle right one as example, when you crop, move the mouse to the dot, before press down left mouse button to resize the crop area, move the mouse a little bit to the right, so that the mouse is still "left-right" arrow state, but the mouse center is already on the right side of the dot. Then you press down the mouse left button, instead of resize the crop area, the area will be rotated.

BTW, I'm using 27 inch 1440p Monitor, with windows scale to 125%. Maybe that also helps.

Re: Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

Posted: Fri Apr 07, 2023 9:41 am
by xnview
cdytoby wrote: Mon Apr 03, 2023 6:15 pm BTW, I'm using 27 inch 1440p Monitor, with windows scale to 125%. Maybe that also helps.
Could you try in 100%?

Re: Image Crop: the crop box can be rotated, and I can't reset, nor input the crop rotation degree with 0

Posted: Fri Apr 07, 2023 11:46 am
by cdytoby
Hello,

I can reproduce it 100% in each crop "session", but it doesn't happen everytime on each drag, may need multiple drags to make this bug happen.

https://www.dropbox.com/s/yu9z9t69do4hp ... e.mp4?dl=0

Here is a screen recording I did. File is too big for this forum, so I post it in Dropbox.


---------------Update----------------

Ignore what I posted here, I made a mistake understanding it.... You mean 100% screen scale, not 100% chance or reproduce.

In 100% Scale mode, the crop box can still be rotated, but the mouse will show "rotation" symbol correctly.

--------------Update 2---------------

- I forgot to mention, the rotate symbol of the cursor looks very weird, probably due to the scaled mouse cursor in mouse setting
- After switching to 100% scale mode, and switching back to 125% scale mode, the mouse cursor do change now in 125% if it's going to do rotation instead of scale, but the cursor is super super weird, looks like something else totally. (can't take screenshot because mouse cursor disappear every time)
- I restarted my PC, when staying in 125% screen scale, cursor now changes everytime when cursor is in rotation mode.