mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
prevent zooming the whole app when ctrl + zoom on the canvas note, fixes #3002
This commit is contained in:
@@ -114,6 +114,13 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
||||
|
||||
doRender() {
|
||||
this.$widget = $(TPL);
|
||||
this.$widget.bind('mousewheel DOMMouseScroll', event => {
|
||||
if (event.ctrlKey) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
this.$widget.toggleClass("full-height", true); // only add
|
||||
this.$render = this.$widget.find('.canvas-render');
|
||||
|
||||
Reference in New Issue
Block a user