You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Embedded dashboard modals do not respect scroll depth #1363
I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
This is a bug report and not a feature request, nor asking for self-hosted support
Describe the bug
When using an embedded dashboard on mobile, the details modals do not respect the scroll depth. Instead, they open at the top of the page and the user has to scroll to the top to see the details.
I am unclear on this issue. When I checked whether or not I had to scroll to the top of the page when I opened a modal, I had no issues both on my phone and in the browser (500px).
What I see is that the modal opens above the actual viewport so you need to scroll up to see it. This is unlike our dashboard https://plausible.io/plausible.io where it follows the user's scroll position.
I noticed a similar thing when testing Plausible for the first time yesterday, re: iframe embeds.
Something about the iframe resizer, combined with all the other stuff like scroll="no" etc, kept throwing modal content to the top. So modal content was effectively off screen, even on 1920x1080. Details for Location, for example, was completely hidden apart from the modal overlay.
Fortunately, for the embeds, removing <script async src="https://plausible.io/js/embed.host.js"></script> resulted in behavior way more consistent with the non-embedded behavior.
Simplifying the embed link along these lines made it behave as expected:
There is an issue with the simplified embed approach that if you open a modal then use the iframe scrollbar, like many would, rather than arrow key, scroll-wheel or touch, then the modal is dismissed.
Swings and roundabouts I guess.
Not ideal, but imo for the moment better than a seemingly blank modal overlay.
Not sure if related, but we've got a report that the embedded dashboard doesn't allow to scroll all the way to the top of Pages Details view. Reported from iPhone 12 Pro. Screencast below:
IMG_1797.mp4
I checked on my laptop and my Android mobile and there it works all fine.
Activity
tyler-morales commentedon Oct 16, 2021
I am unclear on this issue. When I checked whether or not I had to scroll to the top of the page when I opened a modal, I had no issues both on my phone and in the browser (500px).
ukutaht commentedon Oct 19, 2021
What I see is that the modal opens above the actual viewport so you need to scroll up to see it. This is unlike our dashboard https://plausible.io/plausible.io where it follows the user's scroll position.
chrisbennett-Bene commentedon Nov 24, 2021
I noticed a similar thing when testing Plausible for the first time yesterday, re: iframe embeds.
Something about the iframe resizer, combined with all the other stuff like scroll="no" etc, kept throwing modal content to the top. So modal content was effectively off screen, even on 1920x1080. Details for Location, for example, was completely hidden apart from the modal overlay.
Fortunately, for the embeds, removing
<script async src="https://plausible.io/js/embed.host.js"></script>resulted in behavior way more consistent with the non-embedded behavior.Simplifying the embed link along these lines made it behave as expected:
<iframe class="plausible" plausible-embed src="https://plausible.io/share/alfresco-bar-bistro.com.au?auth=Qlz5fb9txCzZU29jTFSoM&embed=true&theme=dark&background=transparent"></iframe>Issue with simplified embed
There is an issue with the simplified embed approach that if you open a modal then use the iframe scrollbar, like many would, rather than arrow key, scroll-wheel or touch, then the modal is dismissed.
Swings and roundabouts I guess.
Not ideal, but imo for the moment better than a seemingly blank modal overlay.
ukutaht commentedon Nov 25, 2021
Thanks for the information @chrisbennett-Bene! This will be useful when we get around to improving this
ukutaht commentedon Dec 8, 2021
More reading: davidjbradshaw/iframe-resizer#260
metmarkosaric commentedon Apr 3, 2022
Not sure if related, but we've got a report that the embedded dashboard doesn't allow to scroll all the way to the top of Pages Details view. Reported from iPhone 12 Pro. Screencast below:
IMG_1797.mp4
I checked on my laptop and my Android mobile and there it works all fine.