Commit d215459d authored by 李维's avatar 李维

恢复

parent 7e4ff2ce
......@@ -74,7 +74,7 @@ cc.Class({
let newX = localPos.x;
newX = Math.min(maxX, Math.max(newX, minX));
this.dragBtn.x = dragStartX + newX;
this.dragBtn.x = newX;
const percent = Math.abs(newX-dragStartX) / Math.abs(this.bgProgress.width);
this.setProgress(percent);
this.node.emit('on_drag_percent', percent)
......
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