Remove unnecessary mouse interaction handling in VideoEditor when in project view mode, streamlining the mouse callback functionality.

This commit is contained in:
2025-09-16 09:56:50 +02:00
parent 9dd0c837b4
commit 8c4663c4ef

View File

@@ -1740,10 +1740,6 @@ class VideoEditor:
def mouse_callback(self, event, x, y, flags, _): def mouse_callback(self, event, x, y, flags, _):
"""Handle mouse events""" """Handle mouse events"""
# Handle project view mode - no mouse interaction needed
if self.project_view_mode and self.project_view:
return
# Handle timeline interaction (not for images) # Handle timeline interaction (not for images)
if self.timeline_rect and not self.is_image_mode: if self.timeline_rect and not self.is_image_mode:
bar_x_start, bar_y, bar_width, bar_height = self.timeline_rect bar_x_start, bar_y, bar_width, bar_height = self.timeline_rect