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:
@@ -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] },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user