cmd,example: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-09 23:24:12 +02:00
parent 6380baacb6
commit b1df2a61a9
7 changed files with 9 additions and 16 deletions
+2 -2
View File
@@ -39,13 +39,13 @@ func (s *Slider) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions {
s.next = nil
s.lastCall = s.nextCall
s.offset = float32(s.push)
s.t0 = gtx.Now()
s.t0 = gtx.Now
s.push = 0
}
var delta time.Duration
if !s.t0.IsZero() {
now := gtx.Now()
now := gtx.Now
delta = now.Sub(s.t0)
s.t0 = now
}