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