[vlmc-devel] Track.qml: Update deltaX after newX is changed
Yikai Lu
git at videolan.org
Thu Jul 20 18:28:28 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jul 20 18:26:25 2017 +0200| [8a5d3771e50fe722c825ed24fb8e89fea7f6baca] | committer: Yikai Lu
Track.qml: Update deltaX after newX is changed
> https://code.videolan.org/videolan/vlmc/commit/8a5d3771e50fe722c825ed24fb8e89fea7f6baca
---
src/Gui/timeline/Track.qml | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index 52507db7..dc5e91ff 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -265,6 +265,7 @@ Item {
target = findClipItem( toMove[0] );
var oldX = target.pixelPosition();
var newX = findNewPosition( Math.max( oldX + deltaX, 0 ), target, drag.source, isMagneticMode );
+ deltaX = newX - oldX;
// Let's find newX of the linked clip
for ( i = 0; i < target.linkedClips.length; ++i )
More information about the Vlmc-devel
mailing list