Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lastScrollTop = 0;
- $(window).on('scroll', function() {
- st = $(this).scrollTop();
- if(st < lastScrollTop) {
- console.log('up 1');
- }
- else {
- console.log('down 1');
- // getImages();
- }
- lastScrollTop = st;
- });
Add Comment
Please, Sign In to add comment