sticky-kit icon indicating copy to clipboard operation
sticky-kit copied to clipboard

Sticky div appears/disappears when scroll down - Ipad only

Open hellodi opened this issue 8 years ago • 12 comments

Hello,

Sticky elements work perfectly, but I have a problem on my Ipad. The problem happens in Safari, Chrome, but also Firefox (so probably not a webkit issue?) :

When I scroll down => element becomes sticky. It dissapears during 1/2 seconds and comes back.

And if I scroll to quickly, it happens again. I need to wait (not scroll) to make it reappearing.

It dœsn't seem to happen when I scroll down slowly. But it's hard to describe, very strange behaviour.

I saw posts #31, #180 and #189, and I tryed many advices but nothing changes. And in my case there is no problem with desktop version.

Can't test with an other tablet than ipad, but do you think there is a "touch problem" ? I cannot identify the problem...

Thanks in advance for your help !

hellodi avatar Dec 22 '16 08:12 hellodi

I realize I have the same problem with the black navbar on your website http://leafo.net/sticky-kit/

hellodi avatar Dec 22 '16 09:12 hellodi

Having the same issue, except on the iPhone 6 as well (most likely other versions). Seems to only happen when the address bar is appearing/disappearing and stickykit doesn't know how to handle that. When initially scrolling down the page the sticky nav will disappear as the address bar removes itself, and only reappear after coming to a complete stop. Then, scrolling down works fine. However, scrolling back up (which starts to reveal the address bar), the nav bar disappears and reappears as described above.

kylercarlson avatar Jan 02 '17 15:01 kylercarlson

Did anyone get a fix or workaround for this ?

adam-jones-net avatar Jan 24 '17 12:01 adam-jones-net

Nothing I could figure out, unfortunately.

kylercarlson avatar Jan 24 '17 14:01 kylercarlson

Ditto.

NoLooseEnds avatar Feb 02 '17 10:02 NoLooseEnds

Bump it up +1

audifaxdev avatar Mar 05 '17 22:03 audifaxdev

Check out this page: https://stanko.github.io/ios-safari-scoll-position-fixed/

Applying the CSS styling fixed my problems.

As for it being the "correct" solution, I'm not sure, but it works!

theonlyriddle avatar Mar 07 '17 09:03 theonlyriddle

@theonlyriddle would you kindly share an implementation example? I am totally unable to make it work. Thank you in advance!

hpm76 avatar Mar 30 '17 14:03 hpm76

This is not a sticky-kit issue per se, more a feature of iOS 9+ when it encounters fixed elements. Check out my solution on SO: http://stackoverflow.com/a/43188105/3375005

nternetinspired avatar Apr 03 '17 15:04 nternetinspired

@nternetinspired thank you, It really works

gzzhengbingyi avatar Jul 25 '17 07:07 gzzhengbingyi

@nternetinspired That worked for me, cheers.

chrisdemetriad avatar Aug 15 '17 09:08 chrisdemetriad

@theonlyriddle I used the same solution and it fixed the sticky flickering issue on Safari for me!

ro0t avatar May 20 '19 11:05 ro0t