The plugin is currently attaching one single scroll listener to the window
In some HTML layouts there are only specific elements that are scrollable and in those cases $(window).on('scroll', handler) has no effect, the handler is never called.
This PR will allow a dev to define which element to attach the scroll listener to :
The plugin is currently attaching one single scroll listener to the window
In some HTML layouts there are only specific elements that are scrollable and in those cases
$(window).on('scroll', handler)
has no effect, thehandler
is never called.This PR will allow a dev to define which element to attach the scroll listener to :
If no
scroller
is defined thenwindow
will be used instead.