Skip to content

Commit 0dc2626

Browse files
full revert
1 parent ccb5386 commit 0dc2626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/modules/components/AppDrawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function PersistScroll(props) {
3030

3131
const activeBox = activeElement.getBoundingClientRect();
3232

33-
if (savedScrollTop === null || activeBox.top < savedScrollTop) {
33+
if (savedScrollTop === null || activeBox.top - savedScrollTop < 0) {
3434
// Center the selected item in the list container.
3535
activeElement.scrollIntoView();
3636
// Fix a Chrome issue, reset the tabbable ring back to the top of the document.

0 commit comments

Comments
 (0)