mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 19:21:52 +00:00
No moving when zoom fit
This commit is contained in:
@@ -2071,6 +2071,9 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
setAllowMove(true);
|
||||
} else {
|
||||
boolean doMove = (h + dy) > h2 || (w + dx) > w2;
|
||||
if (zoom.fit) {
|
||||
doMove = false;
|
||||
}
|
||||
setAllowMove(doMove);
|
||||
if (!doMove) {
|
||||
offsetPoint.setLocation(iconPanel.getWidth() / 2 - w / 2 - dx, iconPanel.getHeight() / 2 - h / 2 - dy);
|
||||
|
||||
Reference in New Issue
Block a user