Describe the bug
Loading remix from iframe causes the focus to shift to the iframe even when the iframe is not within the viewport of the browser.
To Reproduce
Steps to reproduce the behavior:
Load remix.ethereum.org in an iframe that is not full screen, as soon as the loading is done, the focus is triggered even when the iframe is not within the page.
Expected behavior
The auto focus or auto scroll should not be triggered since the IDE can be used as a playground for developers in specific pages to help them understand how to write contracts without leaving the website.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows, Linux or MacOS]
- Browser: [e.g. chrome, firefox]
- Version: [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
Loading remix from iframe causes the focus to shift to the iframe even when the iframe is not within the viewport of the browser.
To Reproduce
Steps to reproduce the behavior:
Load remix.ethereum.org in an iframe that is not full screen, as soon as the loading is done, the focus is triggered even when the iframe is not within the page.
Expected behavior
The auto focus or auto scroll should not be triggered since the IDE can be used as a playground for developers in specific pages to help them understand how to write contracts without leaving the website.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.