Forum Discussion
RayDeRegis
9 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-...
SamHill
9 months agoSuper Hero
Hi Ray, ok, I found a solution. It doesn't make a great deal of sense to me, but adding a slight delay (1/10th of a second) corrects the issue and brings the element into view:
var zoneone = document.querySelector('[data-acc-text="modone"]');
setTimeout(function()
{
zoneone.scrollIntoView(false);
},100);