]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackview.cpp
cleanup
[kdenlive] / src / customtrackview.cpp
index 194c9f1346155d4e71022283053d8d8e41f26185..1edb555b9e51ab6b0c9782a6e5d60608108ed8e0 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());
@@ -3358,7 +3359,7 @@ int CustomTrackView::seekPosition() const
 }
 
 
-void CustomTrackView::setCursorPos(int pos, bool seek)
+void CustomTrackView::setCursorPos(int pos)
 {
     if (pos != m_cursorPos) {
        emit cursorMoved((int)(m_cursorPos), (int)(pos));