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

Widget SliderWithData doesn't work with OnChangeEnded() functionality #4734

Open
2 tasks done
williambrode opened this issue Mar 23, 2024 · 1 comment
Open
2 tasks done
Labels
unverified A bug that has been reported but not verified

Comments

@williambrode
Copy link

Checklist

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

Describe the bug

When using widgets.SliderWithData() and adding an OnChangeEnded function - the OnChangeEnded will be called for every movement of the slider instead of at the end of movement as was intended.

How to reproduce

Run the example code and slide the slider and notice it prints tons, instead of when you stop.

Screenshots

No response

Example code

b := binding.NewFloat()
slider := widget.NewSliderWithData(0, 100, b)
slider.OnChangeEnded = func(val float64) {
   log.Info("OnChangeEnded called")
}

Fyne version

v2.4.3

Go compiler version

1.19

Operating system and version

Windows 10

Additional Information

No response

@williambrode williambrode added the unverified A bug that has been reported but not verified label Mar 23, 2024
@andydotxyz
Copy link
Member

I cannot replicate on develop, can you let me know if you can? It may already have been fixed as a side effect of something else...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants