diff options
author | 2022-01-15 12:47:25 -0600 | |
---|---|---|
committer | 2022-01-15 10:47:25 -0800 | |
commit | 3dda84bf9abdcda0d7c1bebf2c2aa6472a844bbc (patch) | |
tree | 1dec8c21e9dd37677f10f97cde8392b2735955b5 /ui/static/js/touch_handler.js | |
parent | f18ded6117bc33ff012b1c1257a6ed7b511b1192 (diff) | |
download | v2-3dda84bf9abdcda0d7c1bebf2c2aa6472a844bbc.tar.gz v2-3dda84bf9abdcda0d7c1bebf2c2aa6472a844bbc.tar.zst v2-3dda84bf9abdcda0d7c1bebf2c2aa6472a844bbc.zip |
Do not reset touch-item if successfully swiped
Diffstat (limited to 'ui/static/js/touch_handler.js')
-rw-r--r-- | ui/static/js/touch_handler.js | 8 |
1 files 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(); |