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

Use scrollY with pageYOffset fallback #207

Merged

Conversation

akshansh-modi
Copy link
Contributor

@akshansh-modi akshansh-modi commented Jul 6, 2024

Notes for Reviewers

This PR fixes #205 by updating scroll detection to use scrollY with a fallback to pageYOffset for improved cross-browser compatibility.

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Jul 6, 2024

Deploy Preview for meshery-play ready!

Name Link
🔨 Latest commit 1a876b6
🔍 Latest deploy log https://app.netlify.com/sites/meshery-play/deploys/6689126782deb600085b507b
😎 Deploy Preview https://deploy-preview-207--meshery-play.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Ashparshp Ashparshp requested a review from iArchitSharma July 6, 2024 14:38
Copy link

@Ashparshp Ashparshp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for adding the || statement to ensure compatibility with a wider range of browsers..

Copy link
Contributor

@iArchitSharma iArchitSharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iArchitSharma iArchitSharma merged commit 8c97ef1 into meshery:master Jul 8, 2024
2 checks passed
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.

Deprecated Usage of window.pageYOffset
3 participants