diff --git a/src/robotjs.cc b/src/robotjs.cc index c2e7ffe1..05ef6aa0 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -87,7 +87,7 @@ NAN_METHOD(dragMouse) NAN_METHOD(moveMouse) { - if (info.Length() < 2) + if (info.Length() != 2) { return Nan::ThrowError("Invalid number of arguments."); }