@loupekit/sdk 0.10.0-next.39 → 0.10.0-next.40

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.
@@ -2852,9 +2852,9 @@ var Loupe = (() => {
2852
2852
  regionBtn.title = "Drag a free-size box, screenshot it, and comment";
2853
2853
  regionBtn.onclick = () => this.setMode(this.mode === "region" ? "off" : "region");
2854
2854
  const recordBtn = this.toolBtn(RECORD_ICON, "Record", "record");
2855
- recordBtn.title = "Drag a box, record a screen video of it, and comment";
2855
+ recordBtn.title = isTouchDevice() ? "Record your screen, then describe the issue" : "Drag a box, record a screen video of it, and comment";
2856
2856
  recordBtn.onclick = () => this.setMode(this.mode === "record" ? "off" : "record");
2857
- const canRecord = !isTouchDevice() && typeof navigator.mediaDevices?.getDisplayMedia === "function";
2857
+ const canRecord = typeof navigator.mediaDevices?.getDisplayMedia === "function";
2858
2858
  tools.append(inspectBtn, freeBtn, regionBtn, ...canRecord ? [recordBtn] : []);
2859
2859
  const listHead = el("div", "listhead");
2860
2860
  listHead.append(document.createTextNode("Comments"));
@@ -3124,6 +3124,10 @@ var Loupe = (() => {
3124
3124
  document.addEventListener("click", this.onFreeClick, true);
3125
3125
  } else if (mode === "region" && isTouchDevice()) {
3126
3126
  void this.captureViewportForComposer();
3127
+ } else if (mode === "record" && isTouchDevice()) {
3128
+ const vp = { x: 0, y: 0, w: window.innerWidth, h: window.innerHeight };
3129
+ this.setMode("off");
3130
+ void this.finishRecording(vp);
3127
3131
  } else if (mode === "region" || mode === "record") {
3128
3132
  document.addEventListener("pointerdown", this.onRegionDown, true);
3129
3133
  }