From: Joshua Rüsweg Date: Tue, 20 Aug 2019 14:38:47 +0000 (+0200) Subject: Fix navigation on iPad with large resolution on chrome X-Git-Tag: 5.2.0_Beta_1~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c85a381d857b063265ddb9e122c0df8a2672f18;p=GitHub%2FWoltLab%2FWCF.git Fix navigation on iPad with large resolution on chrome See #3027 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index ce9a07f856..01c26723ac 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -81,7 +81,7 @@ define( // but the normal one for the desktop. The navigation reacts to a hover status if a menu item has // several submenu items. Logically, this cannot be created with the iPad, so that we display the // submenu here after a single click and only follow the link after another click. - if (Environment.touch() && Environment.platform() === 'ios' && Environment.browser() === 'safari') { + if (Environment.touch() && Environment.platform() === 'ios' && (Environment.browser() === 'safari' || Environment.browser() === 'chrome')) { UiScreen.on('screen-lg', { match: this._enableLGTouchNavigation.bind(this), unmatch: this._disableLGTouchNavigation.bind(this),