aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/touch_handler.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui/static/js/touch_handler.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/static/js/touch_handler.js b/ui/static/js/touch_handler.js
index 28330113..ac2f26d3 100644
--- a/ui/static/js/touch_handler.js
+++ b/ui/static/js/touch_handler.js
@@ -75,10 +75,13 @@ class TouchHandler {
if (distance > 75) {
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.transform = "none";
- }
+ }
}
this.reset();