IDEA-180216: Image viewer zooms in wrong direction on scroll wheel (by pull request)

This commit is contained in:
Roland Illig
2018-11-21 16:26:45 +03:00
committed by Sergey Malenkov
parent 34ce9f4064
commit d24b8a0d36
@@ -350,10 +350,10 @@ final class ImageEditorUI extends JPanel implements DataProvider, CopyProvider,
double oldZoomFactor = zoomModel.getZoomFactor();
Point oldPosition = myScrollPane.getViewport().getViewPosition();
if (rotation < 0) {
if (rotation > 0) {
zoomModel.zoomOut();
}
else if (rotation > 0) {
else if (rotation < 0) {
zoomModel.zoomIn();
}