]> git.sesse.net Git - kdenlive/blobdiff - src/transition.cpp
use clipitem resize also for transition resize
[kdenlive] / src / transition.cpp
index a925fb795e5f823aea250de11c7ac0ba788be329..4e0ecc0f7b24edc83f5f002ebe0d206bfb38c5c9 100644 (file)
@@ -275,6 +275,8 @@ int Transition::type() const {
     return 70001;
 }
 OPERATIONTYPE Transition::operationMode(QPointF pos, double scale) {
+    if (abs((int)(pos.x() - rect().x())) < 6) return RESIZESTART;
+    else if (abs((int)(pos.x() - (rect().x() + rect().width()))) < 6) return RESIZEEND;
     return MOVE;
 }
 void Transition::resizeTransitionStart(GenTime time) {