Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix events teleporting around with fast mouse clicks #2454

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

salianifo
Copy link
Contributor

Discovered an issue where events would randomly teleport in the visual timeline when clicking too fast for the _process function to run. Additionally, sometimes the mouse position would be in the dead space between events causing drag_to_position not to get updated when _process did get called.

This fix ensures that drag_to_position has been updated at least once after starting a drag operation, otherwise cancels the drag on completion.

This was a pretty difficult bug to reproduce on my machine, but my tester has a very fast click and could consistently reproduce the issue, to the point where their timeline constantly was getting garbled.

@Jowan-Spooner
Copy link
Member

Thanks. Looks reasonable to me.

@Jowan-Spooner Jowan-Spooner merged commit 40177a6 into dialogic-godot:main Oct 26, 2024
3 checks passed
@salianifo salianifo deleted the teleporting-events-fix branch October 26, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants