Skip to content

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

C

Fix(always drag): Enable to drag whole level range if click the drag bar

Abel Youcf0e5c3f10c8
diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp
index 43ebc777b..1de9db79c 100644
--- a/toonz/sources/toonz/xshcellviewer.cpp
+++ b/toonz/sources/toonz/xshcellviewer.cpp
@@ -3372,12 +3372,15 @@ void CellArea::mousePressEvent(QMouseEvent *event) {
// Drag Cells #1 : When "Always Drag Frame Cell" Selected and no modifiers
else if (Preferences::instance()->isAlwaysDragFrameCell() &&
+ o->rect(PredefinedRect::CELL_NAME)
+ .adjusted(0, 0, -frameAdj.x(), -frameAdj.y())
+ .contains(mouseInCell) &&
event->modifiers() == Qt::NoModifier &&
(!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)) {
+ if (column) {
// switch to that FrameCell
m_viewer->setCurrentRow(row);
m_viewer->setCurrentColumn(col);