Skip to content

Commit

Permalink
remove Draggable interface from scroll area
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jan 7, 2024
1 parent 62c45ee commit adca722
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions internal/widget/scroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func (r *scrollBarRenderer) Refresh() {
}

var _ desktop.Hoverable = (*scrollBar)(nil)
var _ fyne.Draggable = (*scrollBar)(nil)

type scrollBar struct {
Base
Expand Down Expand Up @@ -402,21 +401,6 @@ func (s *Scroll) ScrollToTop() {
s.scrollBy(0, -s.Offset.Y)
}

// DragEnd will stop scrolling on mobile has stopped
func (s *Scroll) DragEnd() {
}

// Dragged will scroll on any drag - bar or otherwise - for mobile
func (s *Scroll) Dragged(e *fyne.DragEvent) {
if !fyne.CurrentDevice().IsMobile() {
return
}

if s.updateOffset(e.Dragged.DX, e.Dragged.DY) {
s.refreshWithoutOffsetUpdate()
}
}

// MinSize returns the smallest size this widget can shrink to
func (s *Scroll) MinSize() fyne.Size {
min := fyne.NewSize(scrollContainerMinSize, scrollContainerMinSize).Max(s.minSize)
Expand Down

0 comments on commit adca722

Please sign in to comment.