Fixed Scrollbars

This commit is contained in:
Jindra Petřík
2023-01-09 17:06:01 +01:00
parent c8844b8da9
commit 1cec7592c2
2 changed files with 2 additions and 1 deletions

View File

@@ -2101,7 +2101,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
} else if (freeTransformDepth > -1) {
setAllowMove(true);
} else {
boolean doMove = (h + dy) > h2 || (w + dx) > w2;
boolean doMove = h > h2 || w > w2;
if (zoom.fit) {
doMove = false;
}