huangxiaojing лет назад: 3
Родитель
Сommit
f52f9dfb4f
1 измененных файлов с 1 добавлено и 0 удалено
  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 ?
         { "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" };
+        console.log('x:' + ping.data.x, 'y:' + ping.data.y);
       wsss.send(JSON.stringify(ping));
     }
     canDraw = true;