aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-08-17 15:01:50 -0400
committerSam Anthony <sam@samanthony.xyz>2024-08-17 15:01:50 -0400
commitd858988ee600b273d2120c0d09cdaf7d78395157 (patch)
tree828f8a3bb8deca7884f738d2d7cdaedd4f6e9570
parente4cbefcb77db957124cef30f27db71159c895a99 (diff)
downloadgui-d858988ee600b273d2120c0d09cdaf7d78395157.zip
layout/scroller: remove superfluous variable
-rw-r--r--layout/scroller.go3
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()