[vlmc-devel] Track.qml: Call onPositionChanged manually when onEntered is called
Yikai Lu
git at videolan.org
Wed Jul 19 15:29:43 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 19 14:56:55 2017 +0200| [a00b6b5fb8d0f3e2b89772b6f0e676a7051944b2] | committer: Yikai Lu
Track.qml: Call onPositionChanged manually when onEntered is called
> https://code.videolan.org/videolan/vlmc/commit/a00b6b5fb8d0f3e2b89772b6f0e676a7051944b2
---
src/Gui/timeline/Track.qml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index fa8ef20d..d044530f 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -188,8 +188,12 @@ Item {
}
lastX = drag.x;
}
- else
+ else {
lastX = drag.source.x;
+ // HACK: Call onPositoinChanged forcely here.
+ // x will be rounded so it won't affect actual its position.
+ drag.source.x = drag.source.x + 0.000001;
+ }
}
onPositionChanged: {
More information about the Vlmc-devel
mailing list