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

fix: prevent divide-by-zero #456

Merged
merged 1 commit into from
Aug 31, 2023
Merged

fix: prevent divide-by-zero #456

merged 1 commit into from
Aug 31, 2023

Conversation

yomotsu
Copy link
Owner

@yomotsu yomotsu commented Aug 31, 2023

The height of _elementRect will be used as a divisor but could be 0 until _elementRect is initialized.
thus _elementRect should be updated right after connecting to the dom.

@yomotsu yomotsu merged commit 190c592 into dev Aug 31, 2023
@yomotsu yomotsu deleted the fix/prevent-div-by-0 branch August 31, 2023 12:55
@github-actions
Copy link

🎉 This PR is included in version 2.7.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant