Forum Discussion

RayDeRegis's avatar
RayDeRegis
Community Member
8 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????