Forums
(@clementducerf)
10 years, 6 months ago
In a different context, triggering the scroll via jquery: $(window).scroll() was not working, but via pure javascript it worked window.dispatchEvent(new Event('scroll')); i’ve no clue why, but it may help someone.
$(window).scroll()
window.dispatchEvent(new Event('scroll'));