1.9.10: Draw, context menu opens after a right mouse drag (pan)

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: xnview, Dreamer

Anibina
Posts: 29
Joined: Fri Apr 26, 2019 7:53 am

1.9.10: Draw, context menu opens after a right mouse drag (pan)

Post by Anibina »

XnView: MP 1.9.10 64 bit
OS: Windows 11 24H2 64bit

The context menu opens after a right mouse button drag (pan).
After drawing a shape, for example: a rectangle
In the draw window: Image > Draw

Effect:
The context menu covers the shape, when right mouse button dragging (panning) over the shape. A workaround is to right mouse drag near the right and bottom edges of the image preview, so that the menu doesn't cover the shape.

Screen recording: https://imgur.com/a/WKgRIH4

And when the context menu is open, the mouse pointer doesn't change when moving over:
- a shape (expected: four way arrows, to show that a left drag will move the shape)
- a shape's handles (small squares) (expected: a diagonal two way arrow, to show that a left drag will resize)

Screen recording: https://imgur.com/a/G8232rg

The context menu has to be dismissed by either:
- pressing esc
- left mouse clicking on the just drawn shape


To reproduce:
1. Open a medium sized image, big enough to allow for zooming and panning in the draw window
2. Open the draw window: Image > Draw
3. Zoom in to the center of the image: mouse wheel forward
4. Change to the rectangle tool, in the top left toolbar
5. Draw a rectangle on the image: left mouse button drag
6. Pan the image: Right mouse button drag

Actual behaviour (bug): The right click context menu opens when the right mouse button is released :bug:

Expected behaviour: No context menu after panning.

Note: Only show the context menu when pressing and releasing the right mouse button, without moving the mouse. It should probably allow for moving the mouse a couple of pixels.

This suggestion:
Mouse click drag threshold needed for better intuitivity
viewtopic.php?p=204103#p204103

mentions one case where it's difficult not to move the pointer slightly:
right clicking with a Wacom tablet stylus' button while hovering millimeters over the tablet.
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.9.10: Draw, context menu opens after a right mouse drag (pan)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.9.10: Draw, context menu opens after a right mouse drag (pan)

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.10.1. Please check and confirm the bug fix here.
Pierre.