Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).scroll(function() {
- if(checkIfXInViewport) {
- // this is getting executed ALL THE TIME
- } else {
- // this never happens even if X is NOT in viewport }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement