Skip to content

Commit 7d671b2

Browse files
author
Guillaume Chau
committed
fix: scroll to inspected leading enabled
1 parent 04c8557 commit 7d671b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/app-frontend/src/mixins/entry-list.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default function ({
2222
requestAnimationFrame(() => {
2323
if (this.inspectedIndex) this.scrollIntoInspected(this.inspectedIndex)
2424
})
25-
}, 100),
25+
}, 100, {
26+
leading: true
27+
}),
2628

2729
scrollIntoInspected: debounce(function (index) {
2830
index += indexOffset
@@ -38,7 +40,9 @@ export default function ({
3840
scroller.scrollTop = top + height - parentHeight
3941
}
4042
})
41-
}, 30)
43+
}, 30, {
44+
leading: true
45+
})
4246
}
4347
}
4448
}

0 commit comments

Comments
 (0)