Forum Discussion

RayDeRegis's avatar
RayDeRegis
Community Member
7 months ago

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-text~=”modone”]’);
zoneone[0].scrollIntoView({block: “end”, inline: “nearest”});

...where "modone" is the accessibility name given to the shape located on the target line I wish to scroll to. 

Thinking it must be possible????

  • RayDeRegis's avatar
    RayDeRegis
    Community Member

    Steve, Nathanial, Sam -- can't thank you enough. All I can say is this forum is aptly named. Cheers.

  • You are welcome Ray. I hadn't seen this technique in SL before. Love it.