From 3dda84bf9abdcda0d7c1bebf2c2aa6472a844bbc Mon Sep 17 00:00:00 2001
From: Jacob Duba <jacob@mooshoe.me>
Date: Sat, 15 Jan 2022 12:47:25 -0600
Subject: [PATCH] Do not reset touch-item if successfully swiped

---
 ui/static/js/touch_handler.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui/static/js/touch_handler.js b/ui/static/js/touch_handler.js
index 4f6d7aec..28330113 100644
--- a/ui/static/js/touch_handler.js
+++ b/ui/static/js/touch_handler.js
@@ -75,10 +75,10 @@ class TouchHandler {
 
             if (distance > 75) {
                 toggleEntryStatus(this.touch.element);
-            }
-
-            this.touch.element.style.opacity = 1;
-            this.touch.element.style.transform = "none";
+	    } else {
+                this.touch.element.style.opacity = 1;
+                this.touch.element.style.transform = "none";
+	    }
         }
 
         this.reset();
-- 
GitLab