Skip to content

Commit

Permalink
Fixed bug on double click when restoring previous scrollbar, that cau…
Browse files Browse the repository at this point in the history
…sed the current selection position to jump on mouse release
  • Loading branch information
jonoomph committed Sep 20, 2024
1 parent 0eb5935 commit a4319ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/windows/views/zoom_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit a4319ba

Please sign in to comment.