sticky
sticky copied to clipboard
flickering when scrolling on iOS safari
as above. it disappears and appears again rather than being a smooth sticky
I experienced this issue on iOS 7. The best solution I could find was to add a "touchmove" event
window.addEventListener('touchmove', scroller, false);
@ncrcat Could you explain more about this? I added the line but nothing changed.
Hi @Dannymx , sure, please have a look at https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
The problem is that onMouseMove and onScroll fire only after the user finishes the gesture of scrolling
Mine flickered on iOS as well, because the .sticky-wrapper
element had a custom CSS rule that set its height to auto (which is a no-no).