don't scroll CM when target is a scrollable input
This commit is contained in:
parent
7e7839bb1e
commit
0f394fa8d8
|
@ -350,6 +350,9 @@ function createSourceEditor({style, onTitleChanged}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function headerOnScroll({target, deltaY, deltaMode, shiftKey}) {
|
function headerOnScroll({target, deltaY, deltaMode, shiftKey}) {
|
||||||
|
if (target.tagName === 'INPUT' && target.type === 'number') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
while ((target = target.parentElement)) {
|
while ((target = target.parentElement)) {
|
||||||
if (deltaY < 0 && target.scrollTop ||
|
if (deltaY < 0 && target.scrollTop ||
|
||||||
deltaY > 0 && target.scrollTop + target.clientHeight < target.scrollHeight) {
|
deltaY > 0 && target.scrollTop + target.clientHeight < target.scrollHeight) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user