From 9881b0f6ad3f99958505f31336e8f87e5c466186 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 3 Sep 2016 17:46:23 +0200 Subject: [PATCH] Add missing reset in touchend for Android menu --- .../files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js index fddab21907..9bbdab76c8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js @@ -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; -- 2.20.1