diff --git a/lib/folk-image-gen.ts b/lib/folk-image-gen.ts index 9cc7e29..f341b83 100644 --- a/lib/folk-image-gen.ts +++ b/lib/folk-image-gen.ts @@ -314,7 +314,8 @@ export class FolkImageGen extends FolkShape { } }); - // Prevent drag on input + // Prevent canvas drag when interacting with content + this.#imageArea?.addEventListener("pointerdown", (e) => e.stopPropagation()); this.#promptInput?.addEventListener("pointerdown", (e) => e.stopPropagation()); // Close button diff --git a/lib/folk-prompt.ts b/lib/folk-prompt.ts index 8f636f5..5cfed84 100644 --- a/lib/folk-prompt.ts +++ b/lib/folk-prompt.ts @@ -539,7 +539,8 @@ export class FolkPrompt extends FolkShape { this.#clearChat(); }); - // Prevent drag on inputs + // Prevent canvas drag when interacting with chat content + this.#messagesEl?.addEventListener("pointerdown", (e) => e.stopPropagation()); this.#promptInput?.addEventListener("pointerdown", (e) => e.stopPropagation()); // Voice dictation diff --git a/shared/components/rstack-collab-overlay.ts b/shared/components/rstack-collab-overlay.ts index 719fc96..3f608ef 100644 --- a/shared/components/rstack-collab-overlay.ts +++ b/shared/components/rstack-collab-overlay.ts @@ -331,9 +331,9 @@ export class RStackCollabOverlay extends HTMLElement { if (!badge) return; if (this.#soloMode) { - badge.innerHTML = `\u{1F464} Solo`; + badge.innerHTML = `\u{1F4F4} Offline`; badge.classList.add('visible', 'solo'); - badge.title = 'Solo mode \u2014 your presence is hidden. Click to go collaborative.'; + badge.title = 'Offline \u2014 your presence is hidden. Click to go online.'; return; } @@ -351,7 +351,7 @@ export class RStackCollabOverlay extends HTMLElement { \u{1F465} ${count} online `; badge.classList.add('visible'); - badge.title = 'Collaborative \u2014 sharing your presence. Click for solo mode.'; + badge.title = 'Online \u2014 sharing your presence. Click to go offline.'; } #renderCursors() { diff --git a/website/canvas.html b/website/canvas.html index 009087b..9d265a5 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -5625,11 +5625,6 @@ Use real coordinates, YYYY-MM-DD dates, ISO currency codes. Ask clarifying quest wbPreviewEl = null; wbCurrentPath = []; - - // Drawing tools are temporary — return to selector after one stroke - if (wbTool && wbTool !== "eraser") { - setWbTool(null); - } }); // Eraser click fallback for old SVG overlay elements