Fix mouse offset error on Windows