mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Fix binding mouse scrolls as clicks
This commit is contained in:
@@ -21,8 +21,6 @@ export class KeyHelper {
|
||||
|
||||
if (e instanceof KeyboardEvent) {
|
||||
code = e.code;
|
||||
} else if (e instanceof MouseEvent) {
|
||||
code = 'Mouse' + e.button;
|
||||
} else if (e instanceof WheelEvent) {
|
||||
if (e.deltaY < 0) {
|
||||
code = WheelCode.SCROLL_UP;
|
||||
@@ -33,6 +31,8 @@ export class KeyHelper {
|
||||
} else {
|
||||
code = WheelCode.SCROLL_RIGHT;
|
||||
}
|
||||
} else if (e instanceof MouseEvent) {
|
||||
code = 'Mouse' + e.button;
|
||||
}
|
||||
|
||||
if (code) {
|
||||
|
Reference in New Issue
Block a user