MediaWiki:Scroll.js

/** * Scroll event propagator. * * E.g., an element can have a scroll (overflow:auto) and images, but scrolling it won't perform * lazy loading for images, since scroll event is not propagated. */ (function($) {

"use strict";

$(document).ready(function {       $('.scrollable').each(function { $(this).scroll(function {               window.dispatchEvent(new CustomEvent('scroll'));            }); });   });

}(jQuery));