mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
ignore invisible elements when binding
This commit is contained in:
@@ -262,6 +262,10 @@ export const getAllHoveredElementAtPoint = (
|
|||||||
bindingBorderTest(element, point, elementsMap, toleranceFn?.(element))
|
bindingBorderTest(element, point, elementsMap, toleranceFn?.(element))
|
||||||
) {
|
) {
|
||||||
candidateElements.push(element);
|
candidateElements.push(element);
|
||||||
|
|
||||||
|
if (!isTransparent(element.backgroundColor)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user