GodSVG icon indicating copy to clipboard operation
GodSVG copied to clipboard

Web: Staggering when draging PathHandle/PolyHandle

Open SeremTitus opened this issue 1 year ago • 4 comments

Caught in web editor

https://github.com/user-attachments/assets/00bac42e-d18b-47cc-b21f-4f7a256c1185

The point is a assigned a value the makes it go off screen, for a second before returning , and occurs numerous times as you drag a point. seems to affect only polygon and polyline tags edit: also path is affected

SeremTitus avatar Jan 06 '25 14:01 SeremTitus

So the <path> element is not affected?

MewPurPur avatar Jan 06 '25 15:01 MewPurPur

So the element is not affected?

After testing it also is

SeremTitus avatar Jan 07 '25 13:01 SeremTitus

I can reproduce something like this very consistently on Firefox when the zoom is set to 110%

The issue is in our HandlerGUI.throw_mouse_motion_event() method. For some reason, Godot's get_window().get_mouse_position() returns the (0, 0) position frequently in this scenario.

I can't figure out how to solve this. I could try again when we move to Godot 4.4, and whatever solution is made, it should also be tested with non-default UI scale.

MewPurPur avatar Jan 12 '25 11:01 MewPurPur

I can reproduce it still, even after 4.4. I think this is Godot's fault though.

MewPurPur avatar Feb 23 '25 22:02 MewPurPur