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: Popups do not appear in certain situations. #5107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rustbasic
Copy link
Contributor

@rustbasic rustbasic commented Sep 13, 2024

Fix: Popups do not appear in certain situations.

The root cause is that last_move_time is not updated in certain situations (slow situations).

This might also be useful for drag etc.

        if clicked_more_recently_than_moved && (self.clicked() || self.is_pointer_button_down_on())

Alternatively, we can apply a specific time (0.5 to 1.0 seconds).

        if clicked_more_recently_than_moved && time_since_last_click < 1.0

The root cause is that `last_move_time` is not updated in certain situations (slow situations).
if self.velocity != Vec2::ZERO {
self.last_move_time = time;
}

self.direction = self.pos_history.velocity().unwrap_or_default().normalized();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The root cause is that last_move_time is not updated in certain situations (slow situations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After using about 45,000 popups, the popups will not be displayed.
1 participant