Add missing reset in touchend for Android menu
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Sep 2016 15:46:23 +0000 (17:46 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Sep 2016 15:47:06 +0000 (17:47 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js

index fddab2190787a8f28e5209232b4b4875f43f1158..9bbdab76c80e98e6993807a7233f7635c7f411e1 100644 (file)
@@ -237,7 +237,12 @@ define(['Core', 'Environment', 'EventHandler', 'ObjectMap', 'Dom/Traverse', 'Dom
                                if (!_androidTouching || touchStart === null) return;
                                
                                // break if the menu did not even start opening
-                               if (!this._menu.classList.contains('open')) return;
+                               if (!this._menu.classList.contains('open')) {
+                                       // reset
+                                       touchStart = null;
+                                       _androidTouching = '';
+                                       return;
+                               }
                                
                                // last known position of the finger
                                var position;