touchpad scroll
This commit is contained in:
4
main.go
4
main.go
@@ -129,8 +129,8 @@ func main() {
|
||||
metaPressed = false
|
||||
}
|
||||
}))
|
||||
tk.Bind(tk.App, "<MouseWheel>", tk.Command(func(e *tk.Event) {
|
||||
log.Println(e)
|
||||
tk.Bind(tk.App, "<TouchpadScroll>", tk.Command(func(e *tk.Event) {
|
||||
// TODO: this event doesn't contain deltas, which means I can't tell if I'm scrolling "in" or "out"
|
||||
}))
|
||||
|
||||
tk.Pack(img)
|
||||
|
Reference in New Issue
Block a user