Commit ac7dd246 authored by liujiangnan's avatar liujiangnan

fix: 拖拽问题

parent 6e114f90
......@@ -224,7 +224,7 @@ cc.Class({
this.barTag.off(cc.Node.EventType.TOUCH_MOVE);
this.barTag.on(cc.Node.EventType.TOUCH_MOVE,(e) => {
var delta = e.getDelta();
let newX = this.barTag.x+delta.x;
let newX = this.barTag.x+delta.x*2;
newX = Math.min(maxX, Math.max(newX, minX));
this.barTag.x = 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