diff options
Diffstat (limited to 'pub/blankplays.js')
-rw-r--r-- | pub/blankplays.js | 6 |
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); } } |