mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
ui/text: handle stop and scroll immediately
In case an event is returned, don't aggregate state changes in Next. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -222,6 +222,10 @@ func (s *Scroll) val(p f32.Point) float32 {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Scroll) Active() bool {
|
||||
return s.flinger.Active()
|
||||
}
|
||||
|
||||
func (f *flinger) Init(now time.Time, v0 float32) {
|
||||
f.t0 = now
|
||||
f.v0 = v0
|
||||
|
||||
Reference in New Issue
Block a user