From: Anthony Talarico Date: Fri, 1 Jun 2018 14:17:52 +0000 (-0400) Subject: adjusting sticky on scroll values for the audio tours page X-Git-Tag: v1.0.0^2~1^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2756190c6fa6648e7b513fda0929bf4ba8fab57d;p=WP-Themes%2Flaurium.git adjusting sticky on scroll values for the audio tours page --- diff --git a/js/custom.js b/js/custom.js index 4b3bc92..bf9b878 100644 --- 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 + 230) <= Math.floor(viewportTop); + return Math.floor(elementTop + 215) <= Math.floor(viewportTop); }; let height = $(window).height(); $(window).on("scroll", function(e){