scroller: add comment

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-24 23:03:50 -07:00
parent 1cb791b4a5
commit 79f32298d0
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ export default defineComponent({
const hoverCursor = <HTMLSpanElement>this.$refs.hoverCursor;
this.topPadding = hoverCursor?.offsetHeight ?? 0;
// Add extra padding for any top elements
// Add extra padding for any top elements (top matter, mobile header)
document.querySelectorAll('.timeline-scroller-gap').forEach((el) => {
this.topPadding += el.clientHeight + 1;
});