@@ -927,6 +927,14 @@ bool AbstractNotationPaintView::adjustCanvasPosition(const RectF& logicRect, boo
927927 TRACEFUNC;
928928
929929 RectF viewRect = viewport ();
930+ PointF pos = viewRect.topLeft ();
931+
932+ // Account for continuous panel if panning in continuous view
933+ qreal continuousPanelWidth = 0 ;
934+ if (notation ()->viewMode () == engraving::LayoutMode::LINE) {
935+ continuousPanelWidth = m_continuousPanel->width ();
936+ }
937+ viewRect.adjust (continuousPanelWidth, 0 , 0 , 0 );
930938
931939 double viewArea = viewRect.width () * viewRect.height ();
932940 double logicRectArea = logicRect.width () * logicRect.height ();
@@ -948,17 +956,16 @@ bool AbstractNotationPaintView::adjustCanvasPosition(const RectF& logicRect, boo
948956 _scale = 1 ;
949957 }
950958
951- PointF pos = viewRect.topLeft ();
952959 PointF oldPos = pos;
953960
954961 RectF showRect = logicRect;
955962
956963 if (showRect.left () < viewRect.left ()) {
957- pos.setX (showRect.left () - border);
964+ pos.setX (showRect.left () - border - continuousPanelWidth );
958965 } else if (showRect.left () > viewRect.right ()) {
959966 pos.setX (showRect.right () - width () / _scale + border);
960967 } else if (viewRect.width () >= showRect.width () && showRect.right () > viewRect.right ()) {
961- pos.setX (showRect.left () - border);
968+ pos.setX (showRect.left () - border - continuousPanelWidth );
962969 }
963970
964971 if (adjustVertically) {
0 commit comments