fix the weird text scrolling bug (hopefully)

* this seemed like an odd floating point bug with scrollTo(), maybe? i think this should fix it
remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-13 08:11:47 -07:00
parent 73bd39835b
commit f7ca9aa248
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ function autoExpand (field) {
+ parseInt(computed.getPropertyValue('border-bottom-width'), 10);
field.style.height = height + 'px';
if (Math.abs(window.scrollX - xpos) < 1 && Math.abs(window.scrollY - ypos) < 1) return;
window.scrollTo(xpos,ypos);
};
@ -182,7 +182,7 @@ if (document.readyState === "complete" ||
}
function post_toast(t, url, button1, button2, classname, extra_actions) {
let isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-');
let isShopConfirm = t.id.startsWith('buy1-go') || t.id.startsWith('buy2-go');
if (!isShopConfirm)
{