Docs: Clarify the behavior of setMouseDelay(ms)
Author: inoplanetyanyaCreated Aug 31, 2026Updated Sep 14, 2026
The current documentation for setMouseDelay(ms) states:
Sets the delay in milliseconds to sleep after a mouse event. This is 10ms by default.
However, it is not entirely clear how this delay affects execution under the hood. Specifically, it might confuse users whether new mouse events sent during this delay are ignored, queued asynchronously, or if the delay synchronously blocks the main thread.
This addition will prevent confusion for developers who are designing high-frequency mouse automation and wonder about event queuing or potential performance bottlenecks.
Source: octalmage/robotjs