You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Input.is_action_just_pressed accesses the global state.
What happens for you is, that in the same frame you get a InputEventMouseButton and a InputEventMouseMotion and for both Input.is_action_just_pressed evaluates to true, because in this frame the mouse-button-event has happened.
Godot version
4.1.1
System information
WIn 11
Issue description
I encountered a strange problem - when the mouse is moving quickly and clicked, the click event is triggered twice.
I tried left click, right click, and middle click, they all have the same problem.
I also tried replacing the mouse but still got the same error no matter using is_action_just_pressed or is_action_just_released.
2023-08-02.163929.mp4
Steps to reproduce
mouse is moving quickly and clicked
Minimal reproduction project
mouse.zip
The text was updated successfully, but these errors were encountered: