Fix navigation on iPad with large resolution on chrome
authorJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 20 Aug 2019 14:38:47 +0000 (16:38 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 20 Aug 2019 14:38:47 +0000 (16:38 +0200)
See #3027

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index ce9a07f8566bf8ca5438c8a6aa06b992a8da45aa..01c26723ac40cc95af3ccdb7523b5bb417621510 100644 (file)
@@ -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),