Commit c36439dd authored by wildfirecode's avatar wildfirecode

1

parent cb1d5229
No preview for this file type
No preview for this file type
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -229,7 +229,7 @@ export default class GameView extends engine.Container {
this.onMove,
this
);
this.stage.once(
this.stage.addEventListener(
engine.MouseEvent.MOUSE_UP,
this.stageOnUp,
this
......@@ -247,6 +247,12 @@ export default class GameView extends engine.Container {
this
);
this.stage.removeEventListener(
engine.MouseEvent.MOUSE_UP,
this.stageOnUp,
this
);
// 拖动的图片的中心位置在图片之外,回到原来的位置
if (this.centerY < 0 || this.centerX < 0) {
this.dragPic.x = this.distanceX
......
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