(function () {
if ("scrollBehavior" in document.documentElement.style) {
return;
}
const Element = window.HTMLElement || window.Element;
Element.prototype.scrollTo = function () {
let left = 0;
let top = 0;
if (arguments.length > 1) {
left = arguments[0];
top = arguments[1];
} else {
left = arguments[0].left;
top = arguments[0].top;
}
this.scrollLeft = left;
this.scrollTop = top;
};
})();