mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-180216: Image viewer zooms in wrong direction on scroll wheel (by pull request)
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user