imgui-node-editor icon indicating copy to clipboard operation
imgui-node-editor copied to clipboard

Links will not drag from pins using quick mouse movement and small pin size (while zoomed out) - in develop branch

Open crolando opened this issue 2 years ago • 3 comments

There seems to be a problem with the develop branch that isn't in the master branch.

Here is what I am doing: I run the blueprint example, zoom out way, put my mouse on a pin towards the right edge (i can see it highlight), click and hold left mouse, and drag off the pin off the right side quickly. The result of this is: The link does not come out, and instead a selection-box on the graph is started.

This does not happen in master, only in develop. Master handles this situation perfectly.

In develop, it looks like the pin must have "at least a couple mouse drag events" while inside the bounds of of the pin before ax::NodeEditor::BeginCreate() returns true.

I have windows 10 with the monitor running at 144hz. Let me know if you'd like a video or anything to assist repro.

crolando avatar Mar 06 '22 18:03 crolando

Thanks for report. I will try to reproduce issue.

thedmd avatar Apr 16 '22 07:04 thedmd

I can confirm the develop branch.

Even if the mouse cursor stays for longer at the spot, it doesn't seem to catch the pin. This is from the blueprint example, not modified. imgui-node-editor-pin-bug

Namek avatar Jul 17 '22 15:07 Namek

I can also confirm this fault, initially I thought it was just me missing the pin...

gnif avatar Jul 21 '22 07:07 gnif

Editor should now behave better in this cases. Fix is on develop.

thedmd avatar Aug 21 '22 03:08 thedmd