0

I am using a jQuery plugin called stickyjs (http://stickyjs.com/) to make an element stick to the top of the browser when it reaches the top. It works perfectly fine on my Mac.. but when I use the mouse scroll wheel on my PC it blinks once really fast as soon as the element reaches the top of the page. If I drag the scrollbar it does not blink. It only happens when I use the scroll wheel.. weird!!! You should be able to see it happen on stickyjs's demo page: http://stickyjs.com/

You can see the white "Sticky" header blinks and so do the buttons that say "Download Plugin" and "Fork on Github." Again, this seems to only be happening on PC's.

Does anyone know what is causing this? Is there a way around it?

4

1 回答 1

0

从一开始就设置position:fixed。问题似乎是滚动后分配了位置。所以基本上你滚动,div被留下,然后位置被添加,使它回到窗口的顶部。这会让它闪烁

于 2013-08-12T14:24:24.287 回答