FF: actually prevent scrolling in focusNoScroll

This commit is contained in:
tophf 2017-12-08 22:06:17 +03:00
parent 18b20d13be
commit 240ccc8309

View File

@ -915,7 +915,7 @@
el.focus({preventScroll: true});
el = null;
if (window.scrollY !== y || window.scrollX !== x) {
window.scrollTo(x, y);
setTimeout(window.scrollTo, 0, x, y);
}
}
}