Przeglądaj źródła

Merge pull request #6900 from Jaskar/master

Playground : Fix examples on mobile
David Catuhe 5 lat temu
rodzic
commit
aa331fad57
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Playground/js/menuPG.js

+ 2 - 1
Playground/js/menuPG.js

@@ -49,7 +49,8 @@ class MenuPG {
         // Handle quit of menus
         for (var i = 0; i < this.allToDisplay.length; i++) {
             this.allToDisplay[i].addEventListener('mouseleave', function () {
-                this.removeAllOptions();
+                if(this.isMobileVersion) return;
+                else this.removeAllOptions();
             }.bind(this));
         }