Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Make element sticky on touch screens only happens after scroll is finished Reply To: Make element sticky on touch screens only happens after scroll is finished

#250085
Senff
Participant

I just rewrote an old page where several fixed elements would disappear on Chrome and Opera desktop when scrolling. Fixed that by making them direct children of body.

By doing it like that, wouldn’t you lose your styles (since it’s losing parents)?