Forum Discussion
Vertical Storyline Scrolling
- 6 months ago
Thank you for clarifying. I see you have two additional buttons (Layer 1 and Layer 2) on the base layer that remain visible on each layer. The issue isn’t with the code itself, but rather with those buttons triggering actions and maintaining focus. This focus precedence prevents the layer from scrolling to the top content as expected. These buttons don’t need to be visible on other layers, as they’re redundant — you already have duplicate buttons on each layer for navigating back and forth. I’ve modified your file so that the JavaScript runs on each layer and changes the state of whichever base layer button gets clicked first to 'Hidden'. Preview the file and let me know if the issue is resolved.
I must be doing something wrong, so thank you for your help! This is not something I'm super familiar with. Your initial suggestion worked perfectly for our guidelines without layers, so then I went and tried to update the guidelines that include layers and can't get it to work. Maybe I'm setting the trigger incorrectly. Here is a pretty bare example that shows my issue and layers not starting at the top.
Thank you for clarifying. I see you have two additional buttons (Layer 1 and Layer 2) on the base layer that remain visible on each layer. The issue isn’t with the code itself, but rather with those buttons triggering actions and maintaining focus. This focus precedence prevents the layer from scrolling to the top content as expected. These buttons don’t need to be visible on other layers, as they’re redundant — you already have duplicate buttons on each layer for navigating back and forth. I’ve modified your file so that the JavaScript runs on each layer and changes the state of whichever base layer button gets clicked first to 'Hidden'. Preview the file and let me know if the issue is resolved.
- DanielleForm3306 months agoCommunity Member
That works!! Thank you so much! This makes sense and it's going to allow our users to have a better experience. Thanks again!
Related Content
- 20 days ago
- 4 months ago
- 8 months ago