From 854ce9aa50040e5f18b15d3ee70c56ac952490d9 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 8 Jan 2026 20:45:30 +0100 Subject: [PATCH] fix: enable canvas panning when VideoChat shape not selected Add conditional pointer-events to iframe - only enabled when shape is selected, allowing normal canvas pan/zoom when not interacting with video. Co-Authored-By: Claude Opus 4.5 --- src/shapes/VideoChatShapeUtil.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shapes/VideoChatShapeUtil.tsx b/src/shapes/VideoChatShapeUtil.tsx index 58855ad..655388d 100644 --- a/src/shapes/VideoChatShapeUtil.tsx +++ b/src/shapes/VideoChatShapeUtil.tsx @@ -235,6 +235,8 @@ export class VideoChatShape extends BaseBoxShapeUtil { left: 0, right: 0, bottom: 0, + // Only enable pointer events when selected, so canvas can pan when not selected + pointerEvents: isSelected ? "all" : "none", }} allow="camera; microphone; fullscreen; display-capture; autoplay; clipboard-write" referrerPolicy="no-referrer-when-downgrade"