Created
October 21, 2017 18:25
-
-
Save entrptaher/eba0ccfc417601bb93f55d0504b4cbab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function didScroll(e) { | |
let scrolled; | |
try { | |
scrolled = (e.event.type === "scroll" && e.currentPosition === "inside" && e.previousPosition === "below"); | |
} catch (e) { | |
console.log('having problem grabbing data') | |
} | |
return scrolled; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment