mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-14 17:54:47 +01:00
fix: Alt+drag movement block
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user