This is happening because it is still detecting the mouse movement. There is a way to get around this, but some mouse resolution will be lost. I can make it use hooks instead. This is based on screen coordinates instead, so windows mouse settings affect it. However I can change those on code, so no need to change those manually.