We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c084c commit ebe276aCopy full SHA for ebe276a
src/sphinx_peek/assets/sphinx_peek.js
@@ -214,7 +214,8 @@ function scrollToContent(iframe) {
214
return;
215
}
216
if (element) {
217
- element.scrollIntoView({ behavior: "auto" });
+ // see: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#behavior
218
+ element.scrollIntoView({ behavior: "instant" });
219
} else {
220
console.warn(`Sphinx Peek: Target does not exist: ${target}`);
221
// if target link doesn't exist, scroll to the top of the page
0 commit comments