Commit 6c9a3239 authored by Dafrok's avatar Dafrok

fix(zoom): zoom with `ctrl + wheel`

https://github.com/fex-team/kityminder-editor/issues/584
parent 1ac722b0
......@@ -181,12 +181,12 @@ define(function(require, exports, module) {
var value;
var lastValue = me.getPaper()._zoom || 1;
if (delta < 0) {
me.execCommand('zoom-in');
me.execCommand('zoomin');
} else if (delta > 0) {
me.execCommand('zoom-out');
me.execCommand('zoomout');
}
}, 100);
e.originEvent.preventDefault();
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment