Commit f3da5ce4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Shift when using spacer tool disables snapping

parent 12081a35
......@@ -73,7 +73,7 @@ bool ProjectSortProxyModel::filterAcceptsRowItself(int sourceRow, const QModelIn
}
}
}
for (int i = 0; i < 3; i++) {
QModelIndex index0 = sourceModel()->index(sourceRow, i, sourceParent);
if (!index0.isValid()) {
......@@ -84,7 +84,6 @@ bool ProjectSortProxyModel::filterAcceptsRowItself(int sourceRow, const QModelIn
return true;
}
}
return false;
}
......
......@@ -892,7 +892,7 @@ Rectangle {
// Move group
var track = controller.getItemTrackId(spacerGroup)
var frame = Math.round((mouse.x + scrollView.contentX) / timeline.scaleFactor) + spacerFrame - spacerClickFrame
frame = controller.suggestItemMove(spacerGroup, track, frame, root.consumerPosition, root.snapping)
frame = controller.suggestItemMove(spacerGroup, track, frame, root.consumerPosition, (mouse.modifiers & Qt.ShiftModifier) ? 0 : root.snapping)
continuousScrolling(mouse.x + scrollView.contentX, mouse.y + scrollView.contentY)
}
scim = true
......
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