scroll to top when overlay reopen
-
Hello
I'm using the overlay feature to display projects, so almost every overlay is longer than the browser height and therefore you'll need to scroll inside the overlay to continue viewing the project page.
However, once you close an overlay and then reopen, it will remember your last position. That means, if you scroll all the way to the bottom, you will be back at the bottom if you open the project/overlay again. Not really ideal if you have a overlay-page that's scrollable.
Is it possible to make the overlay starting at the top every time you open it?
-
hey can you try if your website even works on safari on ios?
i think if you use many many overlays, it will crash your website on safari ios.overlays aren't really meant to be used like that but i can see why you'd want to do that
-
ok so after thinking this through i think this should be the default behaviour
overlays will always be scrolled to the top when opening them with the next lay theme update that will come out
-
Sounds perfect thanks Armin
I know the splitscreen also is a possibility for displaying many projects, but for this case I would still need a normal full browser-width page as the base site, rather than splitting it in two. I will need to monitor if many overlays break the site, hopefully it will work.
-
i think it would be good if you would test it now, because it might already not work on an iphone safari.
since like half a year or more, safari on iphone just crashes whenever it uses a lot of memory -
I might find a different solution on the mobile version if it takes too much memory, for example create a duplicate of the projects and remove the overlay function, then set a customized mobile front page that links to these pages instead.
Could a possible future feature be to "Remove overlay function in phone version", so when you click an overlay on iphone ios, it would just open the page normal (since overlays are already created as pages)?
-
yea its a great idea!
im writing it downif u update now, overlays will always be scrolled to the top when u open them
-
actually this may not be easily possible mhh
maybe i can only disable it for touch devices in general mmh lets seethis is also a bit of a low priority feature
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it