projects
/
WP-Themes
/
laurium.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a639fc3
)
adjusting sticky on scroll values for the audio tours page
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 1 Jun 2018 14:17:52 +0000
(10:17 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 1 Jun 2018 14:17:52 +0000
(10:17 -0400)
js/custom.js
patch
|
blob
|
history
diff --git
a/js/custom.js
b/js/custom.js
index
4b3bc92
..
bf9b878
100644
(file)
--- a/
js/custom.js
+++ b/
js/custom.js
@@
-186,7
+186,7
@@
jQuery(document).ready(function($){
var viewportTop = $(window).scrollTop();
console.log("ELEMENT TOP", elementTop, "VIEW PORT TOP", viewportTop)
var viewportBottom = viewportTop + $(window).height();
- return Math.floor(elementTop + 2
30
) <= Math.floor(viewportTop);
+ return Math.floor(elementTop + 2
15
) <= Math.floor(viewportTop);
};
let height = $(window).height();
$(window).on("scroll", function(e){