We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87f840b + 702f039 commit 351a511Copy full SHA for 351a511
1 file changed
app/editor/boot.js
@@ -792,6 +792,17 @@ thin.init_ = function() {
792
}
793
});
794
795
+ // Mouse wheel zoom
796
+ main.getMain().getElement().addEventListener('mousewheel', function(e) {
797
+ var workspace = thin.core.getActiveWorkspace();
798
+ if (!e.ctrlKey || !workspace) return;
799
+ if (e.wheelDeltaY < 0) {
800
+ workspace.getAction().actionSetZoom(workspace.getUiStatusForZoom() - 10);
801
+ } else {
802
+ workspace.getAction().actionSetZoom(workspace.getUiStatusForZoom() + 10);
803
+ }
804
+ });
805
+
806
// Zoom in
807
var toolZoomIn = toolbar.setupChild('zoom-in',
808
new thin.ui.ToolbarButton(thin.t('button_zoom_in'), new thin.ui.Icon('zoom-in')),
0 commit comments