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

Improve visibility detection #89

Merged
merged 1 commit into from
May 22, 2018

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented May 22, 2018

Previously the algorithm only checked if client rects existed, but it did not check if those rects had an actual size. We now check the returned array from getClientRects() if the rects do have a non-zero size.

@Turbo87 Turbo87 requested a review from pangratz May 22, 2018 11:13
@pangratz pangratz merged commit 7f4b397 into mainmatter:master May 22, 2018
@Turbo87 Turbo87 deleted the visible-detection branch May 22, 2018 12:26
@Turbo87
Copy link
Collaborator Author

Turbo87 commented May 24, 2018

/cc @scalvert @patocallaghan in case you didn't see it yet :)

@patocallaghan
Copy link
Contributor

oh, nice 👍 So I guess this is a bug in jQuery too? 😄

@Turbo87
Copy link
Collaborator Author

Turbo87 commented May 24, 2018

I would assume so 🤔

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

Successfully merging this pull request may close these issues.

3 participants