Virtual whiteboard for sketching hand-drawn like diagrams
fix: regression on dragging a selected frame by its name (#8924)
Ryan Di606ac6c743ad
diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsxindex d5e5578ca7..a201a440b5 100644--- a/packages/excalidraw/components/App.tsx+++ b/packages/excalidraw/components/App.tsx@@ -5085,7 +5085,11 @@ class App extends React.Component<AppProps, AppState> {isImageElement(element) ? 0 : this.getElementHitThreshold(),);- return isPointInShape(pointFrom(x, y), selectionShape);+ // if hitting the bounding box, return early+ // but if not, we should check for other cases as well (e.g. frame name)+ if (isPointInShape(pointFrom(x, y), selectionShape)) {+ return true;+ }}// take bound text element into consideration for hit collision as well