mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-17 16:36:49 +00:00
KASM-1871 Add smooth scrolling
Previously all scrolling relied on "clicking" the up/down or left/right scroll buttons which made it unprecise and to always scroll at the same speed. Now we pass the scroll delta directly to the xorg input driver so the scroll is more responsinve and adaptive.
This commit is contained in:
parent
3f3d31312c
commit
0a45fcc700
10 changed files with 48 additions and 14 deletions
|
|
@ -223,7 +223,9 @@ void SMsgReader::readPointerEvent()
|
|||
int mask = is->readU8();
|
||||
int x = is->readU16();
|
||||
int y = is->readU16();
|
||||
handler->pointerEvent(Point(x, y), mask, false, false);
|
||||
int scrollX = is->readS16();
|
||||
int scrollY = is->readS16();
|
||||
handler->pointerEvent(Point(x, y), mask, false, false, scrollX, scrollY);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue