Compare commits

...

2 Commits

Author SHA1 Message Date
zsviczian
11ee139d5c
lint 2024-06-13 18:55:17 +02:00
zsviczian
16c0417f5b
Fix - binding to nonexistent element 2024-06-13 18:50:51 +02:00

View File

@ -828,6 +828,9 @@ const bindingBorderTest = (
{ x, y }: { x: number; y: number },
app: AppClassProperties,
): boolean => {
if (!element || !element.width || !element.height) {
return false;
}
const threshold = maxBindingGap(element, element.width, element.height);
const shape = app.getElementShape(element);
return isPointOnShape([x, y], shape, threshold);