mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix drag rotation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
88d4c4fe8d
commit
9a599cfc05
1 changed files with 10 additions and 3 deletions
|
@ -354,9 +354,16 @@ export class LinearElementEditor {
|
|||
) {
|
||||
globalNewPointPosition = getOutlineAvoidingPoint(
|
||||
element,
|
||||
pointFrom<GlobalPoint>(
|
||||
element.x + element.points[pointIndex][0] + deltaX,
|
||||
element.y + element.points[pointIndex][1] + deltaY,
|
||||
pointRotateRads(
|
||||
pointFrom<GlobalPoint>(
|
||||
element.x + element.points[pointIndex][0] + deltaX,
|
||||
element.y + element.points[pointIndex][1] + deltaY,
|
||||
),
|
||||
pointFrom<GlobalPoint>(
|
||||
element.x + element.width / 2,
|
||||
element.y + element.height / 2,
|
||||
),
|
||||
element.angle,
|
||||
),
|
||||
pointIndex,
|
||||
app.scene,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue