We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac03d8 commit 8212e20Copy full SHA for 8212e20
1 file changed
app/editor/boot.js
@@ -792,6 +792,17 @@ thin.init_ = function() {
792
}
793
});
794
795
+ // Mouse wheel zoom
796
+ document.body.addEventListener('mousewheel', function(e){
797
+ var workspace = thin.core.getActiveWorkspace();
798
+ if(e.ctrlKey != true || !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