Forum Discussion
Learn-Primeast
4 years agoCommunity Member
Detect Scrolling Panel Has Reached the Bottom - JavaScript
Hello. Here is a short piece of code I wrote for the scenario in Storyline where you have a scrolling panel and you want to check whether the learner has scrolled all the way to the bottom. There is...
JordanGlaski
4 years agoCommunity Member
Thanks for writing this. I was able to get it to work using a posCalc of 40, and, I know it works if my NEXT button state changes to Normal. But when I revisit the layer, the script doesn't seem to be working anymore. The NEXT button will not change to Normal a second time.
On my main slide I have a trigger to Disable the NEXT button at the start of the slide's timeline. Here are my triggers on the slide layer containing the scrollbar:
"When the timeline starts on this layer, Execute JavaScript"
and
"When scrollAtBottom changes, Change state of Next Button to Normal."
I have the layer set to "Resume Saved State". What am I doing wrong?
Thanks.
Related Content
- 3 years ago
- 10 months ago
- 2 years ago