better way of allowing scroll over monaco editor

This commit is contained in:
2022-01-03 12:22:32 -07:00
parent 07144e95cf
commit c39ef96548

View File

@@ -55,7 +55,8 @@
((objectWith [type "find"] text)
(_find text))
(otherwise (throw "bad message $event for KTxt2Editor"))))
(window.addEventListener "wheel" ->e (e.stopPropagation) true)
(window.addEventListener "scroll"
->(changeState s
(set s.scrollY window.scrollY)))