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 +++++- pub/index.html | 3 +-- 2 files changed, 6 insertions(+), 3 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 // (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); } } diff --git a/pub/index.html b/pub/index.html index 8f26796..335dc22 100644 --- a/pub/index.html +++ b/pub/index.html @@ -62,7 +62,7 @@ - +

How to Play

@@ -117,7 +117,6 @@

The NWL lexicon is by the North American Scrabble Players’ Association (NASPA), and the CSW lexicon is by HarperCollins. -

Design/programming by pommicket. -- cgit v1.2.3