update mobile mouse scroll

This commit is contained in:
csf
2022-05-12 20:05:59 +08:00
parent 3a66d52c2d
commit cfd4fd492b
2 changed files with 11 additions and 5 deletions

View File

@@ -691,11 +691,9 @@ class FFI {
sendMouse('up', button);
}
static void scroll(double y) {
var y2 = y.round();
if (y2 == 0) return;
static void scroll(int y) {
setByName('send_mouse',
json.encode(modify({'type': 'wheel', 'y': y2.toString()})));
json.encode(modify({'type': 'wheel', 'y': y.toString()})));
}
static void reconnect() {