[vlmc-devel] Timeline: Magnet for the left edge of the timeline

Yikai Lu git at videolan.org
Thu Jul 20 15:32:37 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jul 20 13:58:14 2017 +0200| [0dde8cda27e5972986700d3b65dabdb5331071dd] | committer: Yikai Lu

Timeline: Magnet for the left edge of the timeline

> https://code.videolan.org/videolan/vlmc/commit/0dde8cda27e5972986700d3b65dabdb5331071dd
---

 src/Gui/timeline/Track.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index 0209a753..482a2109 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -69,6 +69,9 @@ Item {
                             }
                         }
                     }
+                    // Magnet for the left edge of the timeline
+                    if ( newX < magneticMargin )
+                        newX = 0;
                 }
 
                 // Collision detection



More information about the Vlmc-devel mailing list