Offset for bottom reached
Closed this issue · 2 comments
jerone commented
Still loving your script!
I was looking for a way to set an offset/margin for when the bottomreached
event will be triggered.
Right now it's bottom minus 1 pixel, but I like to trigger this event 100 pixels earlier.
Keep up the great work!
zippy1978 commented
Good idea, I'll add an option for that when I have time :)
zippy1978 commented
Done in version 1.0.5.
The option is bottomDetectionOffset: it can be an int (pixels) or a percentage of the container height (example: '30%').
The default is now set to '10%'.