]> git.sesse.net Git - kdenlive/commitdiff
Fix seeking cursor sometimes stuck at 0:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Sep 2012 20:02:07 +0000 (22:02 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Sep 2012 20:02:07 +0000 (22:02 +0200)
http://kdenlive.org/mantis/view.php?id=2724

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());