Skip to content

Commit

Permalink
slider: do not grab focus on tap
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Nov 8, 2023
1 parent 0635d3e commit 5632be5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions widget/slider.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ func (s *Slider) Dragged(e *fyne.DragEvent) {
//
// Since: 2.4
func (s *Slider) Tapped(e *fyne.PointEvent) {
driver := fyne.CurrentApp().Driver()
if !s.focused && !driver.Device().IsMobile() {
impl := s.super()

if c := driver.CanvasForObject(impl); c != nil {
c.Focus(impl.(fyne.Focusable))
}
}

ratio := s.getRatio(e)
lastValue := s.Value

Expand Down

0 comments on commit 5632be5

Please sign in to comment.