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)) {
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user