Instantly share code, notes, and snippets.

Embed
What would you like to do?
var rr = [], tt = Date.now();
document.getElementById("viewerContainer").addEventListener("scroll", () => rr.push({
top: document.getElementById("viewerContainer").scrollTop,
time: Date.now() - tt
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment