fixed handscroll on extended screen

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 1f9a4858e1
commit ca8949f82f
  1. 5
      src/core/UBApplicationController.cpp

@ -233,12 +233,15 @@ void UBApplicationController::adjustDisplayView()
tr.scale(scaleFactor, scaleFactor);
QRect rect = mControlView->rect();
QPoint center(rect.x() + rect.width() / 2, rect.y() + rect.height() / 2);
QTransform recentTransform = mDisplayView->transform();
if (recentTransform != tr)
mDisplayView->setTransform(tr);
mDisplayView->centerOn(UBApplication::boardController->activeScene()->lastCenter());
mDisplayView->centerOn(mControlView->mapToScene(center));
}
}

Loading…
Cancel
Save