Object under cursor fix

This commit is contained in:
Jindra Petřík
2021-03-29 18:45:42 +02:00
parent 6c709bc5e5
commit c147fb8304
2 changed files with 7 additions and 4 deletions

View File

@@ -1085,8 +1085,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
if (_img == null) {
return null;
}
return new Point((p.x - _rect.x) * _img.getWidth() / _rect.width, (p.y - _rect.y) * _img.getHeight() / _rect.height);
return new Point((p.x - _rect.x), (p.y - _rect.y));
}
private void setAllowMove(boolean allowMove) {