Browse Source

Do not reset touch-item if successfully swiped

Jacob Duba 4 years ago
parent
commit
3dda84bf9a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      ui/static/js/touch_handler.js

+ 4 - 4
ui/static/js/touch_handler.js

@@ -75,10 +75,10 @@ class TouchHandler {
 
 
             if (distance > 75) {
             if (distance > 75) {
                 toggleEntryStatus(this.touch.element);
                 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();
         this.reset();