Commit fa385dae authored by yu's avatar yu

1

parent c6210093
......@@ -235,6 +235,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onItemTouchEnd(e) {
if (this.isFinish) return;
cc.audioEngine.stopAllEffects()
// if (this.checkRoundOver()) return;
let target: cc.Node = e.target;
let data = target.data;
......
......@@ -264,9 +264,9 @@ let pg = {
if (w && h && custom) {
let scaleX = w / nw;
let scaleY = h / nh;
// let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scaleX;
node.height = nh * scaleY;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale;
node.height = nh * scale;
}
node.active = true;
resolve({ w: nw, h: nh });
......
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