Forum Discussion
RayDeRegis
10 months agoCommunity Member
Scroll Into View JavaScript Trigger Not Working
Wondering if anyone has figured out a way to scroll to a specific line in a Storyline scrolling panel?
I have tried the following JS trigger:
var zoneone = document.querySelectorAll(‘[data-acc-...
SteveGannon
Community Member
Not sure if it's just a formatting issue here in the forum but it appears you have a tilde (~) before "modone" and the initial quotation mark before modone is backward.
RayDeRegis
10 months agoCommunity Member
Good eye Steve. I changed the opening quotation mark.
I'm unsure of what to do about tilde. I tried replacing it with nothing and
also tried a dash. Neither made a difference.
var zoneone = document.querySelectorAll(‘[data-acc-text~=“modone”]’);
zoneone[0].scrollIntoView({block: “end”, inline: “nearest”});
I'm thinking this script is fairly common... it has me scratching my head.