mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
ui/gesture: add Scroll.State method
And move Click.State to a method. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ func (e *Editor) Next(cfg ui.Config, queue input.Queue) (EditorEvent, bool) {
|
||||
Y: int(math.Round(float64(evt.Position.Y))),
|
||||
})
|
||||
e.requestFocus = true
|
||||
if !e.scroller.Active() {
|
||||
if e.scroller.State() != gesture.StateFlinging {
|
||||
e.scrollToCaret(cfg)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user