|
@@ -192,8 +192,8 @@ var draw_graph = function (graphType, obj) {
|
|
|
ongoingTouches.push(touchfor[i]);
|
|
|
}
|
|
|
var ping = resolving == 0 ?
|
|
|
- { "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
- { "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.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" };
|
|
|
console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
}
|
|
@@ -210,8 +210,8 @@ var draw_graph = function (graphType, obj) {
|
|
|
var verticalWidthX = touchfor[i].pageX * (videoWidth / vowidth);
|
|
|
var verticalHeightY = touchfor[i].pageY * (videoHeight / voheight);
|
|
|
var ping = resolving == 0 ?
|
|
|
- { "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
- { "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
+ { "data": { "action": 1, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
+ { "data": { "action": 1, "count": ongoingTouches.length, "pointerId": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
ongoingTouches.forEach(function (item, index) {
|
|
@@ -237,8 +237,8 @@ var draw_graph = function (graphType, obj) {
|
|
|
var verticalWidthX = touchfor[i].pageX * (videoWidth / vowidth);
|
|
|
var verticalHeightY = touchfor[i].pageY * (videoHeight / voheight);
|
|
|
var ping = resolving == 0 ?
|
|
|
- { "data": { "action": 2, "count": touchfor.length, "id": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
- { "data": { "action": 2, "count": touchfor.length, "id": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
+ { "data": { "action": 2, "count": touchfor.length, "pointerId": touchfor[i].identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
|
|
|
+ { "data": { "action": 2, "count": touchfor.length, "pointerId": touchfor[i].identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
|
|
|
console.log(ping);
|
|
|
wsss.send(JSON.stringify(ping));
|
|
|
}
|