From 6aaed57a648008ffd222b1dea840e2ea168e4988 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Tue, 25 Jun 2024 08:55:38 -0700 Subject: [PATCH] better variable name --- internal/widget/scroller.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/widget/scroller.go b/internal/widget/scroller.go index e5e66a7e33..15b7b217a2 100644 --- a/internal/widget/scroller.go +++ b/internal/widget/scroller.go @@ -82,7 +82,7 @@ func (b *scrollBar) Cursor() desktop.Cursor { } func (b *scrollBar) DragEnd() { - b.area.isDragged = false + b.area.isDragging = false if fyne.CurrentDevice().IsMobile() { b.area.MouseOut() @@ -91,8 +91,8 @@ func (b *scrollBar) DragEnd() { } func (b *scrollBar) Dragged(e *fyne.DragEvent) { - if !b.area.isDragged { - b.area.isDragged = true + if !b.area.isDragging { + b.area.isDragging = true b.area.MouseIn(nil) switch b.orientation { @@ -131,7 +131,7 @@ func newScrollBar(area *scrollBarArea) *scrollBar { } func (a *scrollBarArea) isLarge() bool { - return a.isMouseIn || a.isDragged + return a.isMouseIn || a.isDragging } type scrollBarAreaRenderer struct { @@ -196,7 +196,7 @@ var _ desktop.Hoverable = (*scrollBarArea)(nil) type scrollBarArea struct { Base - isDragged bool + isDragging bool isMouseIn bool scroll *Scroll orientation scrollBarOrientation @@ -217,7 +217,7 @@ func (a *scrollBarArea) MouseMoved(*desktop.MouseEvent) { func (a *scrollBarArea) MouseOut() { a.isMouseIn = false - if a.isDragged { + if a.isDragging { return }