diff --git a/toonz/sources/toonz/xsheetviewer.cpp b/toonz/sources/toonz/xsheetviewer.cpp index 3334371..0d7d9db 100644 --- a/toonz/sources/toonz/xsheetviewer.cpp +++ b/toonz/sources/toonz/xsheetviewer.cpp @@ -1244,9 +1244,12 @@ void XsheetViewer::keyPressEvent(QKeyEvent *event) { if (orientation()->isVerticalTimeline()) locals.scrollVertTo((frameCount + 1) * orientation()->cellHeight(), visibleRect); - else - locals.scrollHorizTo((frameCount + 1) * orientation()->cellWidth(), - visibleRect); + else { + int x = (((frameCount + 1) * orientation()->cellWidth()) * + getFrameZoomFactor()) / + 100; + locals.scrollHorizTo(x, visibleRect); + } break; } break; @@ -1367,8 +1370,11 @@ void XsheetViewer::scrollToColumn(int col) { if (orientation()->isVerticalTimeline()) scrollToHorizontalRange(x0, x1); - else + else { + if (colNext == col) x1 += m_orientation->cellHeight(); + scrollToVerticalRange(x0, x1); + } } //-----------------------------------------------------------------------------