Commit f5ebf069 authored by liujiaxin's avatar liujiaxin

1234

parent 0a1fa64d
......@@ -531,7 +531,7 @@ cc.Class({
});
window.air = window.air || {}
if (window.air) {
window.air.osmoFingerReadCallback = (pos) => {
window.air.osmoFingerReadCallback = (result) => {
if (!this.gameMachineService) {
return;
}
......@@ -542,10 +542,11 @@ cc.Class({
// && this.gameMachineService.state.value['playing']['play'] == 'answer'
// if (st) {
// }
const p = JSON.parse(pos);
const resultObj = JSON.parse(result);
const p = resultObj.finger_pos_in_page;
this._lastFingerPosition = {
pos:{
x: p.x * 2,
x: p.x,
y: p.y
},
dirty: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment