From a27ffcd70ca9dfad9f7cd7a99fbae484d1719c10 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 19 Sep 2025 01:47:01 -0400 Subject: fix scrollIntoView for dialog fallback --- pub/blankplays.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pub/blankplays.js') diff --git a/pub/blankplays.js b/pub/blankplays.js index e58b9e3..41bdd4e 100644 --- a/pub/blankplays.js +++ b/pub/blankplays.js @@ -521,7 +521,11 @@ function showDialogById(id) { // support for browsers without // (older iOS safari mainly) elem.style.display = 'block'; - elem.scrollIntoView(); + // not sure why this needs to be in a timeout. + // i guess we need to wait for re-flow or whatever. + setTimeout(() => { + elem.scrollIntoView(true); + }, 10); } } -- cgit v1.2.3