Fix #156: allow scrolling the volume slider

This commit is contained in:
Drew Weymouth
2023-05-06 10:20:58 -07:00
parent e212484d00
commit 88b32c7b05
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -57,6 +57,10 @@ func (v *volumeSlider) MinSize() fyne.Size {
return fyne.NewSize(v.Width, h)
}
func (v *volumeSlider) Scrolled(e *fyne.ScrollEvent) {
v.SetValue(v.Value + float64(0.5*e.Scrolled.DY))
}
type VolumeControl struct {
widget.BaseWidget