joshwnj / react-visibility-sensor

Sensor component for React that notifies you when it goes in or out of the window viewport.
MIT License
2.33k stars 195 forks source link

react visibility firing off at the wrong times in iOS iframe #36

Open stanleycyang opened 8 years ago

stanleycyang commented 8 years ago

I am working on making my pages embeddable via iframes. So far it works perfectly on every device except iOS.

The react visibility sensor seems to be firing off at the wrong times, making the experience very poor: https://happiness2others.herokuapp.com/testimonials (view example on iOS device).

On my test iPhone, it's firing off when I only scrolled a little bit, which kills the infinite scroll.

Any ideas on why it's doing this?

joshwnj commented 7 years ago

@stanleycyang thanks for reporting - I haven't tried this on iOS sorry :)

It's possible that we might need something custom for this. Out of interest is it buggy on both ios chrome & safari? Or just one of them?

TotallWAR commented 5 years ago

The same here. But it doesn't work on android into iframe too. Android chrome. Ios safari too