IDEA-61828 Invert Ctrl+Mouse wheel behaviour for editor

This commit is contained in:
Konstantin Bulenkov
2010-11-25 16:43:45 +03:00
parent bdd4dc5828
commit e9537ee73a
@@ -5207,7 +5207,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
protected void processMouseWheelEvent(MouseWheelEvent e) {
if (mySettings.isWheelFontChangeEnabled()) {
if (isChangeFontSize(e)) {
setFontSize(myScheme.getEditorFontSize() + e.getWheelRotation());
setFontSize(myScheme.getEditorFontSize() - e.getWheelRotation());
return;
}
}