]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackview.cpp
Fix seeking cursor sometimes stuck at 0:
[kdenlive] / src / customtrackview.cpp
index 194c9f1346155d4e71022283053d8d8e41f26185..cf1ac2294f639750d4c89a083dd5bc059db64500 100644 (file)
@@ -390,6 +390,7 @@ void CustomTrackView::slotCheckPositionScrolling()
     // If mouse is at a border of the view, scroll
     if (m_moveOpMode != SEEK) return;
     if (mapFromScene(m_cursorPos, 0).x() < 3) {
+       if (horizontalScrollBar()->value() == 0) return;
         horizontalScrollBar()->setValue(horizontalScrollBar()->value() - 2);
         QTimer::singleShot(200, this, SLOT(slotCheckPositionScrolling()));
         seekCursorPos(mapToScene(QPoint(-2, 0)).x());