@loupekit/sdk 0.10.0-next.40 → 0.10.0
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/dist/index.global.js +2 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2825,9 +2825,9 @@ var LoupeApp = class {
|
|
|
2825
2825
|
regionBtn.title = "Drag a free-size box, screenshot it, and comment";
|
|
2826
2826
|
regionBtn.onclick = () => this.setMode(this.mode === "region" ? "off" : "region");
|
|
2827
2827
|
const recordBtn = this.toolBtn(RECORD_ICON, "Record", "record");
|
|
2828
|
-
recordBtn.title =
|
|
2828
|
+
recordBtn.title = "Drag a box, record a screen video of it, and comment";
|
|
2829
2829
|
recordBtn.onclick = () => this.setMode(this.mode === "record" ? "off" : "record");
|
|
2830
|
-
const canRecord = typeof navigator.mediaDevices?.getDisplayMedia === "function";
|
|
2830
|
+
const canRecord = !isTouchDevice() && typeof navigator.mediaDevices?.getDisplayMedia === "function";
|
|
2831
2831
|
tools.append(inspectBtn, freeBtn, regionBtn, ...canRecord ? [recordBtn] : []);
|
|
2832
2832
|
const listHead = el("div", "listhead");
|
|
2833
2833
|
listHead.append(document.createTextNode("Comments"));
|
|
@@ -3097,10 +3097,6 @@ var LoupeApp = class {
|
|
|
3097
3097
|
document.addEventListener("click", this.onFreeClick, true);
|
|
3098
3098
|
} else if (mode === "region" && isTouchDevice()) {
|
|
3099
3099
|
void this.captureViewportForComposer();
|
|
3100
|
-
} else if (mode === "record" && isTouchDevice()) {
|
|
3101
|
-
const vp = { x: 0, y: 0, w: window.innerWidth, h: window.innerHeight };
|
|
3102
|
-
this.setMode("off");
|
|
3103
|
-
void this.finishRecording(vp);
|
|
3104
3100
|
} else if (mode === "region" || mode === "record") {
|
|
3105
3101
|
document.addEventListener("pointerdown", this.onRegionDown, true);
|
|
3106
3102
|
}
|