From: Tim Düsterhus Date: Sat, 3 Sep 2016 15:46:23 +0000 (+0200) Subject: Add missing reset in touchend for Android menu X-Git-Tag: 3.0.0_Beta_1~320 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9881b0f6ad3f99958505f31336e8f87e5c466186;p=GitHub%2FWoltLab%2FWCF.git Add missing reset in touchend for Android menu --- 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;