From a815679a38b299ecbef3bc72fe4369bb7c24a1e5 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 7 Sep 2025 23:52:36 +0200 Subject: [PATCH] refactor(main.py): initialize last_display_update to prevent immediate auto-repeat in VideoEditor class --- croppa/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/croppa/main.py b/croppa/main.py index 858e332..e2e4a8c 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -525,6 +525,9 @@ class VideoEditor: self.auto_repeat_shift = shift_pressed self.auto_repeat_ctrl = ctrl_pressed + # Initialize last_display_update to prevent immediate auto-repeat + self.last_display_update = time.time() + self.seek_video_with_modifier(direction, shift_pressed, ctrl_pressed) def stop_auto_repeat_seek(self):