mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-06 20:44:38 +01:00
fix: Line element angle snapping
This commit is contained in:
@@ -317,7 +317,7 @@ export class LinearElementEditor {
|
|||||||
let deltaY = 0;
|
let deltaY = 0;
|
||||||
if (
|
if (
|
||||||
shouldRotateWithDiscreteAngle(event) &&
|
shouldRotateWithDiscreteAngle(event) &&
|
||||||
!hoveredElement &&
|
(!isBindingElement(element) || !hoveredElement) &&
|
||||||
!element.startBinding &&
|
!element.startBinding &&
|
||||||
!element.endBinding
|
!element.endBinding
|
||||||
) {
|
) {
|
||||||
@@ -504,7 +504,7 @@ export class LinearElementEditor {
|
|||||||
if (
|
if (
|
||||||
shouldRotateWithDiscreteAngle(event) &&
|
shouldRotateWithDiscreteAngle(event) &&
|
||||||
singlePointDragged &&
|
singlePointDragged &&
|
||||||
!hoveredElement &&
|
(!isBindingElement(element) || !hoveredElement) &&
|
||||||
!element.startBinding &&
|
!element.startBinding &&
|
||||||
!element.endBinding
|
!element.endBinding
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user