Animation conflict fix

This commit is contained in:
2026-04-06 16:47:07 -04:00
parent 422e89caee
commit 14c885a60f

View File

@@ -91,6 +91,7 @@ class Home extends Shadow {
if(amount > (this.SIDEBAR_FULL_OPEN - this.SIDEBAR_START_THRESHOLD)) { if(amount > (this.SIDEBAR_FULL_OPEN - this.SIDEBAR_START_THRESHOLD)) {
this.dragStartX = e.touches[0].clientX this.dragStartX = e.touches[0].clientX
this.dragStartTime = Date.now(); // ⬅ track start time this.dragStartTime = Date.now(); // ⬅ track start time
e.stopPropagation();
document.addEventListener("touchmove", this.moveSidebar) document.addEventListener("touchmove", this.moveSidebar)
} }
} else { } else {
@@ -116,6 +117,7 @@ class Home extends Shadow {
if(amount < this.SIDEBAR_START_THRESHOLD) { if(amount < this.SIDEBAR_START_THRESHOLD) {
this.dragStartX = e.touches[0].clientX this.dragStartX = e.touches[0].clientX
this.dragStartTime = Date.now(); this.dragStartTime = Date.now();
e.stopPropagation();
document.addEventListener("touchmove", this.moveSidebar) document.addEventListener("touchmove", this.moveSidebar)
} }
} else { } else {