Set timeout for window scrolling
This commit is contained in:
parent
3f370dd293
commit
825bfc4cf9
|
@ -52,7 +52,9 @@ export class SmoothScroll {
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
} else {
|
} else {
|
||||||
window.scrollTo({top: 0, behavior: 'smooth'});
|
setTimeout( () => {
|
||||||
|
window.scrollTo({top: 0, behavior: 'smooth'});
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
this.lastComponent = this.currentComponent;
|
this.lastComponent = this.currentComponent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue