X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackview.cpp;h=1edb555b9e51ab6b0c9782a6e5d60608108ed8e0;hb=8be90ee688b4e1227d6e3962eef311c2ed7f1284;hp=194c9f1346155d4e71022283053d8d8e41f26185;hpb=30b14d0653d1e27643dcdb450c149e3eec7c8d5d;p=kdenlive diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index 194c9f13..1edb555b 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -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));