Skip to content

Commit

Permalink
regulate scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ardean committed Feb 5, 2017
1 parent 666914d commit 102030a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/server/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion server/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export default class Mouse {
}

scroll(deltaY) {
robot.scrollMouse(2, deltaY > 0 ? "down" : "up");
robot.scrollMouse(1, deltaY > 0 ? "down" : "up");
}
}

0 comments on commit 102030a

Please sign in to comment.