fix: Alt+drag movement block

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2025-11-12 19:49:30 +01:00
parent 6270516ef0
commit adf52cd238

View File

@@ -715,22 +715,24 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
// Handle special alt key case to inside bind no matter what // Handle special alt key case to inside bind no matter what
if (opts?.altKey) { if (opts?.altKey) {
return { return {
start: start: startDragged
startDragged && hit ? hit
? { ? {
mode: "inside", mode: "inside",
element: hit, element: hit,
focusPoint: globalPoint, focusPoint: globalPoint,
} }
: start, : { mode: null }
end: : start,
endDragged && hit end: endDragged
? hit
? { ? {
mode: "inside", mode: "inside",
element: hit, element: hit,
focusPoint: globalPoint, focusPoint: globalPoint,
} }
: end, : { mode: null }
: end,
}; };
} }