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

Add support for the default selection to the slider #576

Merged
merged 1 commit into from
Mar 18, 2024

Commits on Mar 16, 2024

  1. Add support for the default selection to the slider

    Currently the slider fires an update event on each change, but this can
    be not desired e.g because changing the value might be an expensive
    operation, or even the user chooses the same value in the end.
    
    This now captures the current value on mouse down and if it has changed
    on mouseup fires a default selection event. This way a user of the
    slider can always decide what approach works best or even combine the
    different approaches. For example one can use the fast changing value to
    update ui-elements and the default selection to persist the value to
    disk/database/preferences/...
    laeubi committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    ab331a6 View commit details
    Browse the repository at this point in the history