Skip to content

API request: add OnChangeEnded API to the Slider widget #3652

Closed
@dweymouth

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

In some apps it is necessary to differentiate ValueChanged events to a slider that are occurring during a drag action, vs a ValueChanged that occurs at the end of a user interaction, in order to trigger backend logic only in the 2nd case.

Is it possible to construct a solution with the existing API?

Yes, by extending Slider, overriding DragEnd (and later overriding Tapped as well once tap-to-set support lands in the slider widget), to keep track of when the user interaction ends yourself

Describe the solution you'd like to see.

A new callback API to the slider widget OnChangeEnded func() which allows application code to be notified when a user interaction that is changing the slider value has completed. Maybe the signature should be OnChangeEnded func(float) where the last set value is passed as well

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestoptimizationTickets that could help Fyne apps run faster

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions