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:
parent
30daf2a8cb
commit
854ce9aa50
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue