1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

Fixes bug with progress

This commit is contained in:
Amir Raminfar
2020-08-19 13:05:05 -07:00
parent b148367618
commit 13e57ac095

View File

@@ -74,8 +74,8 @@ export default {
onScroll() { onScroll() {
const p = this.parentElement == document ? document.documentElement : this.parentElement; const p = this.parentElement == document ? document.documentElement : this.parentElement;
this.scrollProgress = p.scrollTop / (p.scrollHeight - p.clientHeight); this.scrollProgress = p.scrollTop / (p.scrollHeight - p.clientHeight);
this.animation.cancel();
if (this.autoHide) { if (this.autoHide) {
this.animation.cancel();
this.animation = this.$el.animate( this.animation = this.$el.animate(
{ opacity: [1, 0] }, { opacity: [1, 0] },
{ {