From a4319ba722b3d7b1731ec240a5b9276dd7d11b7c Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Thu, 19 Sep 2024 22:14:22 -0500 Subject: [PATCH] Fixed bug on double click when restoring previous scrollbar, that caused the current selection position to jump on mouse release --- src/windows/views/zoom_slider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/views/zoom_slider.py b/src/windows/views/zoom_slider.py index 5f0981b10..af98d23ca 100644 --- a/src/windows/views/zoom_slider.py +++ b/src/windows/views/zoom_slider.py @@ -247,8 +247,9 @@ def zoomToTimeline(self): self.delayed_resize_callback() def mouseDoubleClickEvent(self, event): - super(ZoomSlider, self).mouseDoubleClickEvent(event) self.zoomToTimeline() + self.mouse_dragging = True # Prevent mouseReleaseEvent from moving selection + event.accept() def mousePressEvent(self, event): """Capture mouse press event"""