summaryrefslogtreecommitdiff
path: root/pub/blankplays.js
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-19 01:47:01 -0400
committerpommicket <pommicket@gmail.com>2025-09-19 01:47:01 -0400
commita27ffcd70ca9dfad9f7cd7a99fbae484d1719c10 (patch)
tree97d56615c3fd10fe3cdfba940790fd715887d4b6 /pub/blankplays.js
parentdd033e6a001035d7a0da1c9037a328c112d87ea5 (diff)
fix scrollIntoView for dialog fallback
Diffstat (limited to 'pub/blankplays.js')
-rw-r--r--pub/blankplays.js6
1 files changed, 5 insertions, 1 deletions
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 <dialog>
// (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);
}
}