I noticed that scrollend is triggered for both x and y. It should be renamed to something like 'scrollbottom' and 'scrollright'.