Commit a85f11af authored by liujiangnan's avatar liujiangnan

feat: barTag的位置

parent c4902839
...@@ -400,7 +400,7 @@ cc.Class({ ...@@ -400,7 +400,7 @@ cc.Class({
const minX = 0; const minX = 0;
let newX = percent * maxX; let newX = percent * maxX;
newX = Math.min(maxX, Math.max(newX, minX)); newX = Math.min(maxX, Math.max(newX, minX));
this.barTag.x = newX>=(maxX-90)?(maxX-90):newX; this.barTag.x = newX>=(maxX-90)?(maxX-90):(newX-15);
this.bar.width = newX; this.bar.width = newX;
this.bar.x = 0 - (maxX / 2); this.bar.x = 0 - (maxX / 2);
}, },
......
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