compute-scroll-into-view icon indicating copy to clipboard operation
compute-scroll-into-view copied to clipboard

scroll to the wrong position when in iframe

Open NoName4Me opened this issue 5 years ago • 1 comments

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

NoName4Me avatar Jun 20 '20 05:06 NoName4Me

Hi, I have fixed the similar issue in https://github.com/magic-akari/seamless-scroll-polyfill/commit/a7409a3b5ce5629cdcfde729aa84df3278b4308e .

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

Hope this helps.

magic-akari avatar Sep 01 '21 16:09 magic-akari