1 parent 0b2aaf6 commit a72da58Copy full SHA for a72da58
1 file changed
src/core/logic/user_trackers.py
@@ -45,10 +45,10 @@ def _update_mouse_position(self):
45
self.mouse_position = x, y
46
47
# Pause the timer if mouse hasn’t moved
48
- if self.last_mouse_position == self.mouse_position:
+ if self.last_mouse_position == self.mouse_position and not self.logic.time_tracker.get_is_paused():
49
self.logic.time_tracker.pause()
50
self.pausing = True
51
- elif self.pausing:
+ elif self.pausing and self.last_mouse_position != self.mouse_position:
52
self.logic.time_tracker.resume()
53
self.pausing = False
54
0 commit comments