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

quick start page iframe (stackblitz) is scroll jacking the page #797

Closed
1 of 5 tasks
thescientist13 opened this issue Nov 8, 2021 · 4 comments
Closed
1 of 5 tasks
Labels
help wanted Extra attention is needed website Tasks related to the projects website / documentation
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

If you go to the Quick Start page which hosts the Stackblitz iframe, the page, upon load, will automatically scroll to the position of the iframe. Can reproduce on Chrome and FF. (on Mac).

quick-start-iframe-scroll-hijack.mov

Details

This is less than desirable since the iframe is heavy and ideally should only be lazy loaded and when on desktop breakpoints. I think when the media query kicks in sets it to display: block is what is causing it? It definitely seems browser related since the URL is not changing at all. 🤔

cc: @aholtzman 🙏

@thescientist13 thescientist13 added help wanted Extra attention is needed website Tasks related to the projects website / documentation labels Nov 8, 2021
@thescientist13 thescientist13 added this to the 1.0 milestone Nov 8, 2021
@aholtzman
Copy link
Member

I have not seen this behavior before. Removing the media query and display does not change this glitch. There really should be a way to solve this without a JS hack, I just do not know what it is at the time - besides using Safari.

@thescientist13
Copy link
Member Author

thescientist13 commented Nov 10, 2021

Actually, looks like it may have been a Stackblitz issue (phew). stackblitz/core#1653.

Let me know if you can reproduce, as it seems to be fixed for me now, and if so, we can close. 🙌

@aholtzman
Copy link
Member

I looks like it is acting normally in Chrome for me now.

@thescientist13
Copy link
Member Author

awesome sauce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed website Tasks related to the projects website / documentation
Projects
None yet
Development

No branches or pull requests

2 participants