[vlmc-devel] Timeline: Don't trigger resize/move when the mouse didn't move
Hugo Beauzée-Luyssen
git at videolan.org
Sun Oct 30 02:02:07 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Oct 29 23:09:24 2016 +0200| [ffc0a82aae1474a0e51342e072de796fa55b15b5] | committer: Hugo Beauzée-Luyssen
Timeline: Don't trigger resize/move when the mouse didn't move
> https://code.videolan.org/videolan/vlmc/commit/ffc0a82aae1474a0e51342e072de796fa55b15b5
---
src/Gui/timeline/Clip.qml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index c73ebb7..a1297ee 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -319,10 +319,13 @@ Rectangle {
}
onReleased: {
+ // Don't trigger event if the mouse didn't move
if ( resizing === true && isCutMode === false )
resize();
- else
+ else if ( dragArea.drag.active )
+ {
dragFinished();
+ }
}
states: [
More information about the Vlmc-devel
mailing list