fix: scope advanced preview controls
This commit is contained in:
1 parent
be08f70c8d
commit
965ccb32d6
1 file changed
+5
-1
@@ -133,7 +133,11 @@ export const BoardAdvancedFocusProvider = ({ children }: PropsWithChildren) => {
|
|||||||
const handlePointerMove = (event: PointerEvent) => {
|
const handlePointerMove = (event: PointerEvent) => {
|
||||||
const current = activeRef.current;
|
const current = activeRef.current;
|
||||||
if (!shiftHeldRef.current || current?.activation !== "preview") return;
|
if (!shiftHeldRef.current || current?.activation !== "preview") return;
|
||||||
if (event.target instanceof Element && event.target.closest(interactiveSelector)) return;
|
if (
|
||||||
|
event.target instanceof Element &&
|
||||||
|
event.target.closest(interactiveSelector)?.closest("[data-advanced-focus-surface]")
|
||||||
|
)
|
||||||
|
return;
|
||||||
|
|
||||||
const underlyingSource = document
|
const underlyingSource = document
|
||||||
.elementsFromPoint(event.clientX, event.clientY)
|
.elementsFromPoint(event.clientX, event.clientY)
|
||||||
|
|||||||
Reference in new issue
Block a user