jSticky icon indicating copy to clipboard operation
jSticky copied to clipboard

Sticky working correctly only after page refresh

Open danstramer opened this issue 4 years ago • 0 comments

Hi Andrew, On this site, I'm using the sticky plugin: https://www.reali.org.il/en/%d7%aa%d7%99%d7%9b%d7%95%d7%9f-%d7%94%d7%93%d7%a8/

You will see that on the first load, the sidebar jumps to the top after scrolling a bit. After refreshing the page, the sidebar works as expected. Any idea why this is happenning? This is the code used: `jQuery(document).ready(function($){ if($(window).width()>768){

$('.widget-area').sticky({ topSpacing: 0, // Space between element and top of the viewport zIndex: 100, // z-index stopper: "#footer" // Id, class, or number value }); } });`

Thanks! Dan

danstramer avatar May 22 '20 15:05 danstramer