Commit f5ebf069 authored by liujiaxin's avatar liujiaxin

1234

parent 0a1fa64d
...@@ -531,7 +531,7 @@ cc.Class({ ...@@ -531,7 +531,7 @@ cc.Class({
}); });
window.air = window.air || {} window.air = window.air || {}
if (window.air) { if (window.air) {
window.air.osmoFingerReadCallback = (pos) => { window.air.osmoFingerReadCallback = (result) => {
if (!this.gameMachineService) { if (!this.gameMachineService) {
return; return;
} }
...@@ -542,10 +542,11 @@ cc.Class({ ...@@ -542,10 +542,11 @@ cc.Class({
// && this.gameMachineService.state.value['playing']['play'] == 'answer' // && this.gameMachineService.state.value['playing']['play'] == 'answer'
// if (st) { // if (st) {
// } // }
const p = JSON.parse(pos); const resultObj = JSON.parse(result);
const p = resultObj.finger_pos_in_page;
this._lastFingerPosition = { this._lastFingerPosition = {
pos:{ pos:{
x: p.x * 2, x: p.x,
y: p.y y: p.y
}, },
dirty: true 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