Skip to content

Commit a72da58

Browse files
committed
fix bug where mouse tracker resume user paused tracking
1 parent 0b2aaf6 commit a72da58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/logic/user_trackers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def _update_mouse_position(self):
4545
self.mouse_position = x, y
4646

4747
# Pause the timer if mouse hasn’t moved
48-
if self.last_mouse_position == self.mouse_position:
48+
if self.last_mouse_position == self.mouse_position and not self.logic.time_tracker.get_is_paused():
4949
self.logic.time_tracker.pause()
5050
self.pausing = True
51-
elif self.pausing:
51+
elif self.pausing and self.last_mouse_position != self.mouse_position:
5252
self.logic.time_tracker.resume()
5353
self.pausing = False
5454

0 commit comments

Comments
 (0)