Commit b1fd717f authored by 智慧's avatar 智慧

fix:解决模版拖进度条不动问题

parent 6e169928
......@@ -174,7 +174,7 @@
"array": [
0,
0,
753.4294426550072,
476.6116683139922,
0,
0,
0,
......
......@@ -164,7 +164,7 @@ cc.Class({
this.ProgressBar.node.on(cc.Node.EventType.TOUCH_START, (e) => {
const pos = e.getLocation();
const pPos = this.ProgressBar.node.convertToNodeSpaceAR(pos);
newX = Math.min(maxX, Math.max(pPos.x, minX));
let newX = Math.min(maxX, Math.max(pPos.x, minX));
this.updateBarByPos(newX);
// console.log("ProgressBar TOUCH_START", newX);
});
......
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