The code that ensures the target is visible within the iframe is:
|
element.scrollIntoView({ behavior: "instant" }); |
This appears to work correctly in Firefox, but Chrome / Safari seems to ignore it?
with Firefox (121.0 on OSX arm64), the is no scroll:

with Chrome (120.0.6099.216 on OSX arm64) and Safari (17.2.1) , the scolling still occurs:

The code that ensures the target is visible within the iframe is:
sphinx-peek/src/sphinx_peek/assets/sphinx_peek.js
Line 218 in ebe276a
This appears to work correctly in Firefox, but Chrome / Safari seems to ignore it?
with Firefox (121.0 on OSX arm64), the is no scroll:
with Chrome (120.0.6099.216 on OSX arm64) and Safari (17.2.1) , the scolling still occurs: