Panning now only works if the viewier is zoomed

This commit is contained in:
Thomas Wilshaw
2020-06-16 11:53:36 +01:00
parent 92eadc6854
commit f6c70f583f
5 changed files with 22 additions and 4 deletions
+2 -1
View File
@@ -105,6 +105,7 @@ void ViewerSizer::UpdateSize()
// This container is taller than the image, scale by width
child_size = QSize(width(), qRound(child_size.width() / aspect_ratio_));
}
emit SetZoomFlag(false);
} else {
@@ -128,7 +129,7 @@ void ViewerSizer::UpdateSize()
child_matrix.scale(x_scale, y_scale, 1.0F);
child_size = QSize(zoomed_width, zoomed_height);
emit SetZoomFlag(true);
}
widget_->resize(child_size);