Browse Source

多点触控

huangxiaojing 3 years ago
parent
commit
f52f9dfb4f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      screenAndroid/WXdraw.js

+ 1 - 0
screenAndroid/WXdraw.js

@@ -194,6 +194,7 @@ var draw_graph = function (graphType, obj) {
       var ping = resolving == 0 ?
       var ping = resolving == 0 ?
         { "data": { "action": 0, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
         { "data": { "action": 0, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
         { "data": { "action": 0, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
         { "data": { "action": 0, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
+        console.log('x:' + ping.data.x, 'y:' + ping.data.y);
       wsss.send(JSON.stringify(ping));
       wsss.send(JSON.stringify(ping));
     }
     }
     canDraw = true;
     canDraw = true;