Browse Source

Fixed flaotWindows on touch screen tablet UX issues

Toby Chui 3 years ago
parent
commit
415c05e830
1 changed files with 9 additions and 1 deletions
  1. 9 1
      web/desktop.system

+ 9 - 1
web/desktop.system

@@ -1695,12 +1695,18 @@
                 evt.preventDefault();
                 evt.stopImmediatePropagation();
                 fwdown($(this).parent(), evt);
+                let fwMaxiButton = $(this).parent().find(".maxToogleButton").parent()[0]
+                doubleTouchHandler(this, evt, function(){
+                    toggleMax(fwMaxiButton, evt);
+                });
             });
+
             $(".fwdragger").off("touchmove").on("touchmove", function(evt) {
                 evt.preventDefault();
                 evt.stopImmediatePropagation();
                 fwmove($(this).parent(), evt);
             });
+            
             $(".fwdragger").off("touchend").on("touchend", function(evt) {
                 evt.preventDefault();
                 evt.stopImmediatePropagation();
@@ -2379,7 +2385,9 @@
                     top: "0px"
                 });
                 $(fw).attr("max", "true");
-                $(fw).find(".maxToogleButton").attr('src', "img/system/restore.svg")
+                $(fw).find(".maxToogleButton").attr('src', "img/system/restore.svg");
+                $(fw).find(".dockright").addClass("disabled");
+                $(fw).find(".dockleft").addClass("disabled");
             }
         }