Commit 680f3e85 authored by LianaHus's avatar LianaHus

standard

parent 26625a73
......@@ -136,9 +136,10 @@ class Editor {
langTools.addCompleter(flowCompleter)
// zoom with Ctrl+wheel
window.addEventListener("wheel", (e) => {
if (e.ctrlKey && Math.abs(e.wheelY) > 5)
window.addEventListener('wheel', (e) => {
if (e.ctrlKey && Math.abs(e.wheelY) > 5) {
this.editorFontSize(e.wheelY > 0 ? 1 : -1)
}
})
// EVENTS LISTENERS
......
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