sticky icon indicating copy to clipboard operation
sticky copied to clipboard

flickering when scrolling on iOS safari

Open raistie opened this issue 9 years ago • 4 comments

as above. it disappears and appears again rather than being a smooth sticky

raistie avatar Nov 21 '15 13:11 raistie

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 avatar Jan 27 '16 15:01 ncrcat

@ncrcat Could you explain more about this? I added the line but nothing changed.

Dannymx avatar Feb 09 '16 22:02 Dannymx

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

ncrcat avatar Feb 10 '16 08:02 ncrcat

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).

ananaszjoe avatar Jun 06 '16 09:06 ananaszjoe