Commit 4135769a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't allow moving a subtitle below 0.

parent 7ae95a2b
......@@ -60,7 +60,7 @@ Item {
}
onPositionChanged: {
if (pressed && !subtitleBase.textEditBegin && startMove) {
newStart = oldStartFrame + (mouseX - oldStartX)/ timeScale
newStart = Math.max(0, oldStartFrame + (mouseX - oldStartX)/ timeScale)
snappedFrame = controller.suggestSubtitleMove(subId, newStart, root.consumerPosition, root.snapping)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment