DockYard / ember-in-viewport

Detect if an Ember View or Component is in the viewport @ 60FPS
MIT License
245 stars 91 forks source link

Safari/IOS Flicker Bug #277

Closed hoIIer closed 2 years ago

hoIIer commented 3 years ago

Hello, I've noticed that on Safari/IOS when scrolling down using {{in-viewport onEnter=() onExit=()}}, the component seems to fire continuously from the time the viewport element first starts to exit, up until when it has fully exited, and vice versa.

This results in the component flickering in and out until the viewport element has completely left. It does not happen in chrome or firefox.

I noticed under the compatibility it lists Safari Technology Preview (hadn't heard of this but looks like it's not in mainline yet)

I'm looking to confirm that it's not expected to work in regular safari/ios or whether it's some kind of bug?

image