don't scroll CM when target is a scrollable input

This commit is contained in:
tophf 2020-08-01 17:57:02 +03:00
parent 7e7839bb1e
commit 0f394fa8d8

View File

@ -350,6 +350,9 @@ function createSourceEditor({style, onTitleChanged}) {
}
function headerOnScroll({target, deltaY, deltaMode, shiftKey}) {
if (target.tagName === 'INPUT' && target.type === 'number') {
return;
}
while ((target = target.parentElement)) {
if (deltaY < 0 && target.scrollTop ||
deltaY > 0 && target.scrollTop + target.clientHeight < target.scrollHeight) {