Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(desktop): toggle cursor events on frontend overlay visibility

Richie McIlroy48ab420f039e
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
index 3543b1960..a140812d7 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
@@ -1696,6 +1696,7 @@ function Page() {
const abort = new AbortController();
for (const win of await getAllWebviewWindows()) {
if (win.label.startsWith("target-select-overlay")) {
+ await win.setIgnoreCursorEvents(true);
await win.hide();
}
}
@@ -1704,6 +1705,7 @@ function Page() {
for (const win of await getAllWebviewWindows()) {
if (win.label.startsWith("target-select-overlay")) {
+ await win.setIgnoreCursorEvents(false);
await win.show();
}
}