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

Callback when slider drag has ended #5365

Closed
bolau opened this issue Nov 4, 2023 · 0 comments · Fixed by #5382
Closed

Callback when slider drag has ended #5365

bolau opened this issue Nov 4, 2023 · 0 comments · Fixed by #5382
Labels
feature request New feature or request

Comments

@bolau
Copy link

bolau commented Nov 4, 2023

This function solves the problem (这个功能解决的问题)

The only callback the slider has is on-update. If I want to start longer computation or make a web request after the slider has been updated, the high frequency of updates when dragging the mouse causes problems. I would like to get a different callback when the drag action as ended (mouse or touch). It should also fire, if the value was changed by keyboard.

Or is there a default callback for such elements, that I don't know about, and that would solve this problem?

Expected API (期望的 API)

The callback "finished" should be called on mouse up, dragend, touchend or similar events.

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

Successfully merging a pull request may close this issue.

1 participant