feat: enable midpoint inside linear element editor (#5564)

* feat: enable midpoint inside linear element editor

* fix

* fix

* hack to set pointerDownState.hit.hasHitElementInside when mid point added

* remove hacks as not needed :)

* remove newline

* fix

* add doc
This commit is contained in:
Aakansha Doshi 2022-08-18 19:56:26 +05:30 committed by GitHub
parent f4b1a30bef
commit 46a61ad4df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 20 deletions

View file

@ -364,9 +364,6 @@ export class LinearElementEditor {
scenePointer: { x: number; y: number },
appState: AppState,
) => {
if (appState.editingLinearElement) {
return false;
}
const { elementId } = linearElementEditor;
const element = LinearElementEditor.getElement(elementId);
if (!element) {