Explorar o código

fix: line deselected when shift-dragging point outside editor (#5540)

David Luzar %!s(int64=2) %!d(string=hai) anos
pai
achega
4359e2935d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/components/App.tsx

+ 2 - 1
src/components/App.tsx

@@ -4838,7 +4838,8 @@ class App extends React.Component<AppProps, AppState> {
                   ...idsOfSelectedElementsThatAreInGroups,
                 },
               }));
-            } else {
+              // if not gragging a linear element point (outside editor)
+            } else if (!this.state.selectedLinearElement?.isDragging) {
               // remove element from selection while
               // keeping prev elements selected