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

scroll to the wrong position when in iframe #694

Open
NoName4Me opened this issue Jun 20, 2020 · 1 comment
Open

scroll to the wrong position when in iframe #694

NoName4Me opened this issue Jun 20, 2020 · 1 comment

Comments

@NoName4Me
Copy link

  • chrome 83.0.4103.106 on Mac
  • scroll-into-view-if-needed@2.2.25

iframe

  • button[click to scroll]: scroll by this scroll-into-view-if-needed
  • button[click to scroll by brower API]: scroll by native Element.ScrollIntoViewIfNeeded

reproduction: https://codesandbox.io/s/elegant-cdn-75n62

@magic-akari
Copy link

Hi,
I have fixed the similar issue in magic-akari/seamless-scroll-polyfill@a7409a3 .

Try: https://codesandbox.io/s/autumn-http-zcwn0

Hope this helps.

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

No branches or pull requests

2 participants