mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
io/pointer,gesture,app/internal/window: add pointer.Scroll event type
Signed-off-by: Gordon Klaus <gordon.klaus@gmail.com>
This commit is contained in:
@@ -310,11 +310,11 @@ func (h *x11EventHandler) handleEvents() bool {
|
||||
btn = pointer.ButtonRight
|
||||
case C.Button4:
|
||||
// scroll up
|
||||
ev.Type = pointer.Move
|
||||
ev.Type = pointer.Scroll
|
||||
ev.Scroll.Y = -scrollScale
|
||||
case C.Button5:
|
||||
// scroll down
|
||||
ev.Type = pointer.Move
|
||||
ev.Type = pointer.Scroll
|
||||
ev.Scroll.Y = +scrollScale
|
||||
default:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user