Fix regression: reset touch-item if not in /unread
This commit is contained in:
parent
21bbaf2691
commit
7a1429bcc1
1 changed files with 5 additions and 2 deletions
|
@ -75,10 +75,13 @@ class TouchHandler {
|
||||||
|
|
||||||
if (distance > 75) {
|
if (distance > 75) {
|
||||||
toggleEntryStatus(this.touch.element);
|
toggleEntryStatus(this.touch.element);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
// If not on the unread page, undo transform of the dragged element.
|
||||||
|
if (document.URL.split("/").indexOf("unread") == -1 || distance <= 75) {
|
||||||
this.touch.element.style.opacity = 1;
|
this.touch.element.style.opacity = 1;
|
||||||
this.touch.element.style.transform = "none";
|
this.touch.element.style.transform = "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|
Loading…
Reference in a new issue