uinput: Fix vertical scroll direction
This commit is contained in:
parent
1794150285
commit
c6fe56479a
1 changed files with 1 additions and 1 deletions
|
|
@ -195,5 +195,5 @@ func (p *uinputController) PointerMove(deltaX, deltaY int) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *uinputController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error {
|
func (p *uinputController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error {
|
||||||
return errors.Join(p.mouse.Wheel(false, int32(deltaVertical)), p.mouse.Wheel(true, int32(deltaHorizontal)))
|
return errors.Join(p.mouse.Wheel(false, int32(-deltaVertical)), p.mouse.Wheel(true, int32(deltaHorizontal)))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue