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

InteractiveViewer: Throttle on_interaction_update event #4646

Open
1 task done
jgersti opened this issue Jan 2, 2025 · 0 comments · May be fixed by #4704
Open
1 task done

InteractiveViewer: Throttle on_interaction_update event #4646

jgersti opened this issue Jan 2, 2025 · 0 comments · May be fixed by #4704
Assignees
Labels
enhancement Improvement/Optimization feature request Suggestion/Request for additional feature

Comments

@jgersti
Copy link

jgersti commented Jan 2, 2025

Duplicate Check

Describe the requested feature

When panning or zooming the the on_interaction_update event fires extremely fast.
To alleviate this a throttling mechanism like the *_interval attributes on GestureDetector should be implemented by introducing an interaction_interval attribute to InteractiveViewer and modifying the on_interaction_update event to not be fired more than once per interval.

@jgersti jgersti changed the title InteractiveViewer: Throttle on_interaction_update InteractiveViewer: Throttle on_interaction_update event Jan 2, 2025
@ndonkoHenri ndonkoHenri added enhancement Improvement/Optimization feature request Suggestion/Request for additional feature labels Jan 3, 2025
@ndonkoHenri ndonkoHenri linked a pull request Jan 12, 2025 that will close this issue
@ndonkoHenri ndonkoHenri self-assigned this Jan 12, 2025
@ndonkoHenri ndonkoHenri moved this to 👀 In review in Flet Development Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement/Optimization feature request Suggestion/Request for additional feature
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

2 participants