diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-17 15:01:50 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-17 15:01:50 -0400 |
| commit | d858988ee600b273d2120c0d09cdaf7d78395157 (patch) | |
| tree | 828f8a3bb8deca7884f738d2d7cdaedd4f6e9570 /layout | |
| parent | e4cbefcb77db957124cef30f27db71159c895a99 (diff) | |
| download | gui-d858988ee600b273d2120c0d09cdaf7d78395157.zip | |
layout/scroller: remove superfluous variable
Diffstat (limited to 'layout')
| -rw-r--r-- | layout/scroller.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layout/scroller.go b/layout/scroller.go index 151a4f2..c532f93 100644 --- a/layout/scroller.go +++ b/layout/scroller.go @@ -50,7 +50,6 @@ func clamp(val, a, b int) int { } func (s *Scroller) Intercept(env gui.Env) gui.Env { - evs := env.Events() out, in := gui.MakeEventsChan() drawChan := make(chan func(draw.Image) image.Rectangle) ret := &muxEnv{out, drawChan} @@ -77,7 +76,7 @@ func (s *Scroller) Intercept(env gui.Env) gui.Env { }() go func() { - for ev := range evs { + for ev := range env.Events() { switch ev := ev.(type) { case win.MoMove: mu.Lock() |