pxt-arcade 2.0.42 → 2.0.44

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.
package/built/editor.js CHANGED
@@ -359,6 +359,17 @@ var pxt;
359
359
  }
360
360
  }
361
361
  }
362
+ // fixed a typing issue where the browserEvents_mouseButton_pauseUntil was using the wrong enum
363
+ if (pxt.semver.strcmp(pkgTargetVersion || "0.0.0", "2.0.41") < 0) {
364
+ for (const block of pxt.U.toArray(dom.querySelectorAll("block[type=browserEvents_mouseButton_pauseUntil]"))) {
365
+ const field = getChildNode(block, "field", "name", "event");
366
+ if (!field)
367
+ continue;
368
+ if (field.textContent.startsWith("browserEvents.KeyEvent")) {
369
+ field.textContent = field.textContent.replace("KeyEvent", "MouseButtonEvent");
370
+ }
371
+ }
372
+ }
362
373
  }
363
374
  function swapFieldIfNotMatching(eventRoot, fieldAName, fieldBName, fieldAShouldStartWith) {
364
375
  const fieldA = eventRoot.querySelector(`field[name=${fieldAName}]`);