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:
Elias Naur
2019-07-08 00:06:31 +02:00
parent 2292fd0c63
commit 84cd3fcdca
2 changed files with 14 additions and 13 deletions
+4
View File
@@ -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