Starting and finishing dragging is done by two separate systems where:
System to start drag behavior listens for "button left - just pressed" and initializes dragging.
System to end drag behavior listens for "button left - just released and we are dragging" and stops dragging.
This can cause an issue in cases when the FPS of the application is very low and the button is pressed and released on the same frame. We can get stuck in dragging behavior with the second system failing to cleanup the dragging.
Fix applied
This PR changes the drag start system to only start dragging if the button was pressed but not released in the current frame.
Bug fix
Fixed bug
Starting and finishing dragging is done by two separate systems where:
This can cause an issue in cases when the FPS of the application is very low and the button is pressed and released on the same frame. We can get stuck in dragging behavior with the second system failing to cleanup the dragging.
Fix applied
This PR changes the drag start system to only start dragging if the button was pressed but not released in the current frame.