Revert the zoom direction on Ctrl-mouse wheel in wxStyledTextCtrl.
The direction of the zoom in wxSTC didn't correspond to the usual conventions which is to zoom in on Ctrl-Wheel-Up and zoom out on Ctrl-Wheel-Down, while wxSTC did exactly the converse. Change it to behave as everybody else. Closes #14031. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -827,7 +827,7 @@ void ScintillaWX::DoMouseWheel(int rotation, int delta,
|
||||
int lines;
|
||||
|
||||
if (ctrlDown) { // Zoom the fonts if Ctrl key down
|
||||
if (rotation < 0) {
|
||||
if (rotation > 0) {
|
||||
KeyCommand(SCI_ZOOMIN);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user