Improve QTimer usage for mouse movement.