touchpad scroll

This commit is contained in:
2025-02-22 00:34:15 -05:00
parent de92b1f710
commit 9ee002110d

View File

@@ -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)