Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix(XshCellViewer): Only drag cell with noModifier(for example shift)

Abel Youe3715cf97c95
diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp
index a2d9daed1..71eb4fa27 100644
--- a/toonz/sources/toonz/xshcellviewer.cpp
+++ b/toonz/sources/toonz/xshcellviewer.cpp
@@ -3376,8 +3376,8 @@ void CellArea::mousePressEvent(QMouseEvent *event) {
.contains(mouseInCell) ||
// Or Control Pressed
event->modifiers() & Qt::ControlModifier ||
- //Or Frame Cell Selected
- (Preferences::instance()->isAlwaysDragFrameCell() &&
+ // Or Frame Cell Selected and no modifiers
+ (event->modifiers() == Qt::NoModifier && Preferences::instance()->isAlwaysDragFrameCell() &&
(!xsh->getCell(row, col).isEmpty()) && xsh->getCell(row, col) != xsh->getCell(row - 1, col))) {
TXshColumn *column = xsh->getColumn(col);
if (column && !m_viewer->getCellSelection()->isCellSelected(row, col)) {