labmaker-plugin 0.0.279 → 0.0.280

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1919,15 +1919,16 @@ const Ll = {
1919
1919
  return this.stepperStore.pixelFormat(A);
1920
1920
  },
1921
1921
  checkMove(A) {
1922
+ var c;
1922
1923
  if (this.content.sound) {
1923
- let c = document.getElementById("myAudio");
1924
+ let e = document.getElementById("myAudio");
1924
1925
  setTimeout(() => {
1925
- c.play();
1926
+ e.play();
1926
1927
  }, 1e3);
1927
1928
  }
1928
- if (A.draggedContext.element.relSwap && setTimeout(() => {
1929
- let c = A.draggedContext.element.id, e = document.getElementById(c);
1930
- e.src = A.draggedContext.element.relSwap;
1929
+ if (A !== "clicked" && ((c = A.draggedContext.element) != null && c.relSwap) && setTimeout(() => {
1930
+ let e = A.draggedContext.element.id, a = document.getElementById(e);
1931
+ a.src = A.draggedContext.element.relSwap;
1931
1932
  }, 1500), this.stepperStore.stepHold = !1, this.stepperStore.finishSteps(), this.stepperStore.lastPageFocus(), A !== "clicked")
1932
1933
  return !A.from.classList.contains("preventMove");
1933
1934
  },
@@ -1935,9 +1936,11 @@ const Ll = {
1935
1936
  this.listOne = [], this.createItems();
1936
1937
  },
1937
1938
  keyboardDrag(A, c) {
1938
- if (A.class.indexOf("preventMove") < 0)
1939
+ if (A.class.indexOf("preventMove") > -1)
1939
1940
  return !1;
1940
- A.class += " preventMove", this.listOne[c].splice(A), this.listOne[c + 1].push(A), this.checkMove("clicked");
1941
+ A.class += " preventMove", this.listOne[c].splice(A), this.listOne[c + 1].push(A), A.relSwap && setTimeout(() => {
1942
+ console.log(this.listOne[c + 1][0]), this.listOne[c + 1][0].image = this.listOne[c + 1][0].relSwap;
1943
+ }, 1500), this.checkMove("clicked");
1941
1944
  }
1942
1945
  },
1943
1946
  mounted() {