Skip to content

multiple entries where second is intersecting#113

Open
abhishek-031 wants to merge 1 commit intoalexjoverm:masterfrom
abhishek-031:multiple-entries
Open

multiple entries where second is intersecting#113
abhishek-031 wants to merge 1 commit intoalexjoverm:masterfrom
abhishek-031:multiple-entries

Conversation

@abhishek-031
Copy link
Copy Markdown

Proposing a fix for issue #112
Earlier the observer callback was only checking if the first entry is intersecting with the viewport but in some cases there can be multiple entries in the callback where the code only checks for the first one and if the first one is false and any other is true the code breaks.
Trying to check if any entry is intersecting is a viable solution to fix this.
Attaching a screen shot of the console reproducing the issue.
Screenshot 2023-04-11 at 4 55 58 PM

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

Successfully merging this pull request may close these issues.

1 participant