Update DocSectionNav.vue
parent
e8d50fd372
commit
6cd41325d1
|
@ -49,7 +49,7 @@ export default {
|
|||
methods: {
|
||||
onScroll() {
|
||||
if (!this.isScrollBlocked) {
|
||||
const labels = document.querySelectorAll(':is(h1,h2,h3).doc-section-label');
|
||||
const labels = [...document.querySelectorAll(':is(h1,h2,h3).doc-section-label')].filter((el) => DomHandler.isVisible(el));
|
||||
|
||||
const windowScrollTop = DomHandler.getWindowScrollTop();
|
||||
|
||||
|
|
Loading…
Reference in New Issue