fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 835 forks source link

In schematic right clicking then moving a label causes a jump in position #3895

Closed vanepp closed 4 months ago

vanepp commented 3 years ago

Current Behaviour

If you place a part in schematic, then right click on the label and move it slightly (1 grid line in this case) the position jumps a large distance.

capture

like this

capture1

if you left click on the label and move it it moves as expected only 1 grid line without jumping a large (and apparently random) direction,.

Build:

Version 0.9.9 (bCD-348-0-f0af53a9 2021-09-22) 64 [Qt 5.15.2]

Operating System: Windows 10

Steps to reproduce:

Expected Behaviour

The label should move with the mouse as a left mouse click does not jump.

KjellMorgenstern commented 3 years ago

Right click will show the context of the label: image

KjellMorgenstern commented 3 years ago

I have trouble to reproduce this issue. But when I right-click on a label, it can not be moved at all in Fritzing 0.9.9 ? The context menu will be shown instead, as expected. We have fixed a similar issue related to undo/redo, but I think that was already in 0.9.7

failiz commented 3 years ago

I could reproduce it in 0.9.9. I think you have to move the label first (with the left button) and then try to right click.

failiz commented 8 months ago

Still an issue in 1.0.2.

Steps:

KjellMorgenstern commented 8 months ago

Trying to reproduce this here, but the right click menu immediately appears when pressing the right mouse button.

When you right click the resistor itself, does the menu also delay until the button is released again?

KjellMorgenstern commented 8 months ago

Which input device are you using? Mouse or touchpad? I am currently testing on Linux, with a mouse.

failiz commented 8 months ago

I'm in windows with a mouse

failiz commented 8 months ago

When you right click the resistor itself, does the menu also delay until the button is released again?

Yes, the menu only appears when releasing the button, both for the resistor or the label

KjellMorgenstern commented 8 months ago

I was able to reproduce it on windows as you described. Behavior of reacting on release vs on press is due to the OS conventions. The fix works on Windows (emulator), with Ubuntu, mouse and touchpad. I'll also try with a macbook, then add it to 1.0.3