Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntesectionObserver fails to fire event upon horizontal scrolling on small screen #301

Closed
anatsarig opened this issue May 29, 2018 · 6 comments

Comments

@anatsarig
Copy link

When laying elements horizontally (with horizontal scroll bar), and scrolling left/right,
IntersectionObserver does not always fire event when an observed element enters the viewport.
This happens on mobile devices or when testing on desktop chrome while setting small dimensions or Responsive screen or mobile screens (iPhone 6/7/8 etc.)

Is there a way to overcome this ?
Thank you

@eduardmarcinov
Copy link

I have same issue on Safara 11.1. Any way how to solve this? Thank you

@szager-chromium
Copy link
Collaborator

This is most likely related to issue #266. If the layout viewport is bigger than the visual viewport, then IntersectionObserver won't send notifications when objects move on or off the screen.

This is not unique to horizontal scrolling; it should affect vertical scrolling the same way.

@anatsarig
Copy link
Author

Will it be fixed in the near future ? Thank you

@bruscantini
Copy link

I'd also like to know. I'm having issues on safari probably because it's not using the visual viewport. Why can't we have it as an option?

@leonardojimenez
Copy link

+1, getting same issue on Chrome as well

@miketaylr
Copy link
Member

Given #301 (comment), let's close this issue as a duplicate. If someone has a reduced test case to show it's different, please command and we can re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants