Commit fa385dae authored by yu's avatar yu

1

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