diff --git a/ui/slider.go b/ui/slider.go index 89973d4..1c9c66f 100644 --- a/ui/slider.go +++ b/ui/slider.go @@ -110,7 +110,6 @@ func (s *Slider) DesiredSize(ctx Context, _ geom.PointF32) geom.PointF32 { } func (s *Slider) Handle(ctx Context, e Event) bool { - defer s.setValue(s.Value) if s.handle.Handle(ctx, e) { return true } @@ -166,11 +165,11 @@ func (h *sliderHandle) Handle(ctx Context, e Event) bool { h.ControlBase.Handle(ctx, e) if h.IsOver() { if h.Disabled { - return true + return false } ctx.Renderer().SetMouseCursor(MouseCursorPointer) } - return true + return false } func (h *sliderHandle) Render(ctx Context) {