Skip to content

Commit 351176b

Browse files
committed
Added microsleep to scrollMouse.
1 parent be33adc commit 351176b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/robotjs.cc

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ NAN_METHOD(scrollMouse)
213213
int scrollDirection = args[1]->Int32Value();
214214

215215
scrollMouse(scrollMagnitude, scrollDirection);
216+
microsleep(mouseDelay);
216217

217218
NanReturnValue(NanNew("1"));
218219
}

0 commit comments

Comments
 (0)