[vlmc-devel] Timeline: Find new position even if x is 0 and the same as the old value

Yikai Lu git at videolan.org
Tue Jul 26 16:12:51 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 23:07:02 2016 +0900| [284233f23dba9dfe22e61f9ea1dd8096843c647b] | committer: Yikai Lu

Timeline: Find new position even if x is 0 and the same as the old value

> https://code.videolan.org/videolan/vlmc/commit/284233f23dba9dfe22e61f9ea1dd8096843c647b
---

 src/Gui/timeline/Track.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index 472e175..b38f442 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -281,7 +281,7 @@ Item {
                         scrollToTarget( drag.source );
 
                         // Optimization: Delta delta X should be different
-                        if ( deltaX === drag.source.x - lastX ) {
+                        if ( deltaX === drag.source.x - lastX && drag.source.x !== 0 ) {
                             lastX = drag.source.x;
                             return;
                         }



More information about the Vlmc-devel mailing list