Commit 880a1b97 authored by 李维's avatar 李维

Bug fix

parent 37117a2d
......@@ -385,7 +385,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let elementDrag = null
elementDrag = this.g_cartoon.createCartoonElementLabel("text-puzzle-"+index, " " + item.media.text + " ", "MMTextBook-Bold", "#000", 48 * this.g_mapScale, -500, -500)
this.render(element.ref)
this.render(elementDrag.ref)
this.render(elementDrag.ref, 10)
element.timeoutID = null
this.subscribeMapDragEvent(element.id, ()=>{
......@@ -406,6 +406,9 @@ export class PlayComponent implements OnInit, OnDestroy {
elementDrag.ref.x = elementDrag.initX,
elementDrag.ref.y = elementDrag.initY
this.m_elementDraged = element.id;
setTimeout(() => {
this.m_elementDraged = null;
}, 100);
this.g_enableMapUp = true;
this.g_enableMapDown = true;
})
......@@ -436,7 +439,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let textDrag = null
textDrag = this.g_cartoon.createCartoonElementLabel("text-puzzle-left-drag", " " + this.g_formData.bgItem.wordLeft_text + " ", "MMTextBook-Bold", "#C8161E", 48 * this.g_mapScale, -500, -500)
this.render(textDrag.ref)
this.render(textDrag.ref, 10)
this.render(element.ref)
element.timeoutID = null
......@@ -460,6 +463,9 @@ export class PlayComponent implements OnInit, OnDestroy {
textDrag.ref.x = textDrag.initX,
textDrag.ref.y = textDrag.initY
this.m_elementDraged = element.id;
setTimeout(() => {
this.m_elementDraged = null;
}, 100);
this.g_enableMapUp = true;
this.g_enableMapDown = true;
})
......@@ -490,7 +496,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let textDrag = null
textDrag = this.g_cartoon.createCartoonElementLabel("text-puzzle-right-drag", " " + this.g_formData.bgItem.wordRight_text + " ", "MMTextBook-Bold", "#C8161E", 48 * this.g_mapScale, -500, -500)
this.render(textDrag.ref)
this.render(textDrag.ref, 10)
this.render(element.ref)
element.timeoutID = null
......@@ -514,6 +520,9 @@ export class PlayComponent implements OnInit, OnDestroy {
textDrag.ref.x = textDrag.initX,
textDrag.ref.y = textDrag.initY
this.m_elementDraged = element.id;
setTimeout(() => {
this.m_elementDraged = null;
}, 100);
this.g_enableMapUp = true;
this.g_enableMapDown = true;
})
......
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