You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run in under the mobile driver or on an emulator, it behaves as expected, but when I run it on real hardware, I get what you see in the attached video
Screen_recording_20250118_113617.mp4
How to reproduce
Use fyne-cross to build an android apk
Install and run on hardware
Slide the slider back and forth
Notice it snaps back to 0.0 seemingly at random.
Screenshots
See attached video in description
Example code
package main
import (
"fmt""fyne.io/fyne/v2""fyne.io/fyne/v2/app""fyne.io/fyne/v2/container""fyne.io/fyne/v2/data/binding""fyne.io/fyne/v2/layout""fyne.io/fyne/v2/widget"
)
funcmain() {
a:=app.New()
w:=a.NewWindow("Slider Test")
data:=binding.NewFloat()
slider:=widget.NewSliderWithData(0.0, 10.0, data)
slider.SetValue(5.0)
slider.Step=0.1display:=widget.NewLabel("Holding")
data.AddListener(binding.NewDataListener(func() {
val, _:=data.Get()
display.Text=fmt.Sprint(val)
display.Refresh()
}))
content:=container.New(layout.NewVBoxLayout(), slider, display)
w.SetContent(content)
w.Resize(fyne.NewSize(100,100))
w.ShowAndRun()
}```
### Fyne version
2.5.3 (though fyne cross uses 2.3.5)
### Go compiler version
go1.23.4
### Operating system and version
darwin/arm64 14.6.1
### Additional Information
_No response_
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
I wrote this simple test https://github.com/pneumaticdeath/fyne_slider_test
When I run in under the mobile driver or on an emulator, it behaves as expected, but when I run it on real hardware, I get what you see in the attached video
Screen_recording_20250118_113617.mp4
How to reproduce
Screenshots
See attached video in description
Example code
The text was updated successfully, but these errors were encountered: