|
@@ -188,6 +188,7 @@ var draw_graph = function (graphType, obj) {
|
|
|
var ping = resolving == 0 ?
|
|
|
{ "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
{ "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
+ console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
canDraw = true;
|
|
|
};
|
|
@@ -203,6 +204,7 @@ var draw_graph = function (graphType, obj) {
|
|
|
var ping = resolving == 0 ?
|
|
|
{ "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
{ "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
+ console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
ongoingTouches.splice(touchfor.identifier, 1);
|
|
|
canDraw = false;
|
|
@@ -224,6 +226,7 @@ var draw_graph = function (graphType, obj) {
|
|
|
var ping = resolving == 0 ?
|
|
|
{ "data": { "action": 2, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
{ "data": { "action": 2, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
+ console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
};
|
|
|
|