Skip to content

Commit

Permalink
Added microsleep to scrollMouse.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Sep 19, 2015
1 parent be33adc commit 351176b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ NAN_METHOD(scrollMouse)
int scrollDirection = args[1]->Int32Value();

scrollMouse(scrollMagnitude, scrollDirection);
microsleep(mouseDelay);

NanReturnValue(NanNew("1"));
}
Expand Down

0 comments on commit 351176b

Please sign in to comment.