Animation conflict fix
This commit is contained in:
@@ -91,6 +91,7 @@ class Home extends Shadow {
|
||||
if(amount > (this.SIDEBAR_FULL_OPEN - this.SIDEBAR_START_THRESHOLD)) {
|
||||
this.dragStartX = e.touches[0].clientX
|
||||
this.dragStartTime = Date.now(); // ⬅ track start time
|
||||
e.stopPropagation();
|
||||
document.addEventListener("touchmove", this.moveSidebar)
|
||||
}
|
||||
} else {
|
||||
@@ -116,6 +117,7 @@ class Home extends Shadow {
|
||||
if(amount < this.SIDEBAR_START_THRESHOLD) {
|
||||
this.dragStartX = e.touches[0].clientX
|
||||
this.dragStartTime = Date.now();
|
||||
e.stopPropagation();
|
||||
document.addEventListener("touchmove", this.moveSidebar)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user