Commits

Henning Schröder committed f2fcf78

jump to value

Comments (0)

Files changed (1)

qtwidgets/scrollbar.py

 
     def mousePressEvent(self, event):
         found = self.clicked_annotation(event.pos())
-        if found and found.on_click:
-            found.on_click()
+        if found:
+            self.setValue(found.start_pos)
+            if found.on_click:
+                found.on_click()
+            return
         return super(AnnotatedScrollBar, self).mousePressEvent(event)
 
     def leaveEvent(self, event):