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,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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user