Browse Source

minor fix

TC pushbot 5 4 years ago
parent
commit
41e70b5f73
1 changed files with 5 additions and 0 deletions
  1. 5 0
      web/desktop.system

+ 5 - 0
web/desktop.system

@@ -4433,6 +4433,8 @@
         });
         });
 
 
         function getCoordinateFromEvent(e){
         function getCoordinateFromEvent(e){
+            var x = -1;
+            var y = -1;
             if (e.originalEvent == undefined){
             if (e.originalEvent == undefined){
                 e.originalEvent = e;
                 e.originalEvent = e;
             }
             }
@@ -4443,6 +4445,9 @@
             } else if (e.type == 'mousedown' || e.type == 'mouseup' || e.type == 'mousemove' || e.type == 'mouseover'|| e.type=='mouseout' || e.type=='mouseenter' || e.type=='mouseleave') {
             } else if (e.type == 'mousedown' || e.type == 'mouseup' || e.type == 'mousemove' || e.type == 'mouseover'|| e.type=='mouseout' || e.type=='mouseenter' || e.type=='mouseleave') {
                 x = e.clientX;
                 x = e.clientX;
                 y = e.clientY;
                 y = e.clientY;
+            }else{
+                x = e.clientX;
+                y = e.clientY;
             }
             }
             return [x,y];
             return [x,y];
         }
         }