From 102030afe63533b9652ae6e4f9fcf23e3e060160 Mon Sep 17 00:00:00 2001 From: ardean Date: Sun, 5 Feb 2017 15:55:49 +0100 Subject: [PATCH] regulate scroll --- dist/server/mouse.js | 2 +- package.json | 2 +- server/mouse.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/server/mouse.js b/dist/server/mouse.js index ddbe472..d7b9cb6 100644 --- a/dist/server/mouse.js +++ b/dist/server/mouse.js @@ -52,7 +52,7 @@ class Mouse { } scroll(deltaY) { - _robotjs2.default.scrollMouse(2, deltaY > 0 ? "down" : "up"); + _robotjs2.default.scrollMouse(1, deltaY > 0 ? "down" : "up"); } } exports.default = Mouse; \ No newline at end of file diff --git a/package.json b/package.json index 30ad89a..20f464a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsremote", - "version": "0.3.5", + "version": "0.3.6", "description": "NodeJS Desktop Remote using W3C Pointer Lock", "main": "index.js", "scripts": { diff --git a/server/mouse.js b/server/mouse.js index b47f0e1..63a48de 100644 --- a/server/mouse.js +++ b/server/mouse.js @@ -42,6 +42,6 @@ export default class Mouse { } scroll(deltaY) { - robot.scrollMouse(2, deltaY > 0 ? "down" : "up"); + robot.scrollMouse(1, deltaY > 0 ? "down" : "up"); } }