[vlmc-devel] Timeline: Don't scroll and zoom out if the clip is bigger than the window

Yikai Lu git at videolan.org
Thu Jul 28 14:39:16 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 27 15:45:36 2016 +0900| [df900df3f8b83e1595eb55391ff9fbb894a2d358] | committer: Yikai Lu

Timeline: Don't scroll and zoom out if the clip is bigger than the window

> https://code.videolan.org/videolan/vlmc/commit/df900df3f8b83e1595eb55391ff9fbb894a2d358
---

 src/Gui/timeline/Track.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index ed302f3..56a038e 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -137,8 +137,8 @@ Item {
             }
 
             function scrollToTarget( target ) {
-                while ( target.width > sView.width )
-                    zoomIn( 0.5 );
+                if ( target.width > sView.width )
+                    return;
 
                 var newContentX = sView.flickableItem.contentX;
 



More information about the Vlmc-devel mailing list