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 ccb5386 commit 0dc2626Copy full SHA for 0dc2626
docs/src/modules/components/AppDrawer.js
@@ -30,7 +30,7 @@ function PersistScroll(props) {
30
31
const activeBox = activeElement.getBoundingClientRect();
32
33
- if (savedScrollTop === null || activeBox.top < savedScrollTop) {
+ if (savedScrollTop === null || activeBox.top - savedScrollTop < 0) {
34
// Center the selected item in the list container.
35
activeElement.scrollIntoView();
36
// Fix a Chrome issue, reset the tabbable ring back to the top of the document.
0 commit comments