Disable Android menu if Redactor is in use
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Sep 2016 15:24:03 +0000 (17:24 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Sep 2016 15:47:05 +0000 (17:47 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js

index 4b47db7c02371d599f7740cd105e331d4a1a9401..fddab2190787a8f28e5209232b4b4875f43f1158 100644 (file)
@@ -223,6 +223,8 @@ define(['Core', 'Environment', 'EventHandler', 'ObjectMap', 'Dom/Traverse', 'Dom
                                        }
                                        if (!found) return;
                                }
+                               // break if redactor is in use
+                               if (document.documentElement.classList.contains('redactorActive')) return;
                                
                                touchStart = touches[0].pageX;