Non-Window scroll alternative code suggestion
-
Hello,
I’m using a custom theme that doesn’t scroll the window but instead a custom div inside of the window. The fix is simple. In the plugin, in assets/js/yith.infinitescroll.js lines 115-116, change the following two lines:
$( window ).on( 'yith_infs_start', function(){ var w = $(this),
for the following:
$( window ).on( 'yith_infs_start', function(event){ var w = $(event.target),
As long as it is the window scrolling, this code will make no difference. If there is a div inside instead, the plugin will continue to work.
Let me know if that makes sense, and whether you will integrate the suggested fix.
Obviously, you’ll have to minify it again in the same folder.
Thanks,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Non-Window scroll alternative code suggestion’ is closed to new replies.