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 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-01-08 20:45:30 +01:00
parent 30daf2a8cb
commit 854ce9aa50
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
left: 0, left: 0,
right: 0, right: 0,
bottom: 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" allow="camera; microphone; fullscreen; display-capture; autoplay; clipboard-write"
referrerPolicy="no-referrer-when-downgrade" referrerPolicy="no-referrer-when-downgrade"