sc was called incorrectly

This commit is contained in:
Chuck Dries 2017-03-03 06:57:52 -07:00
parent 51de5e8c0a
commit 88197c321d

View File

@ -198,7 +198,6 @@
<script> <script>
var last_known_scroll = getScrollY(); var last_known_scroll = getScrollY();
var queueing = false; var queueing = false;
//sc();
document.addEventListener("scroll", function() { document.addEventListener("scroll", function() {
last_known_scroll = getScrollY(); last_known_scroll = getScrollY();
if (!queueing) { if (!queueing) {
@ -210,6 +209,8 @@
queueing = true; queueing = true;
}); });
sc(last_known_scroll);
function sc(ypos) { function sc(ypos) {
var wheight = window.innerHeight; var wheight = window.innerHeight;