[BUG #8117] Removed SIM_MOUSE_DISTANCE logic for detecting simulated mouse events
[BUG #8117] Refactoring