浏览代码

Merge pull request #6900 from Jaskar/master

Playground : Fix examples on mobile
David Catuhe 5 年之前
父节点
当前提交
aa331fad57
共有 1 个文件被更改,包括 2 次插入1 次删除
  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));
         }