Browse Source

refactor: remove unused attribute hasHitElementInside from pointerDownState (#5591)

Aakansha Doshi 2 years ago
parent
commit
32aa79164b
2 changed files with 0 additions and 8 deletions
  1. 0 7
      src/components/App.tsx
  2. 0 1
      src/types.ts

+ 0 - 7
src/components/App.tsx

@@ -3492,7 +3492,6 @@ class App extends React.Component<AppProps, AppState> {
             origin,
             selectedElements,
           ),
-        hasHitElementInside: false,
       },
       drag: {
         hasOccurred: false,
@@ -3670,12 +3669,6 @@ class App extends React.Component<AppProps, AppState> {
           if (hitLinkElement) {
             return false;
           }
-          pointerDownState.hit.hasHitElementInside =
-            isHittingElementNotConsideringBoundingBox(
-              pointerDownState.hit.element,
-              this.state,
-              [pointerDownState.origin.x, pointerDownState.origin.y],
-            );
         }
 
         // For overlapped elements one position may hit

+ 0 - 1
src/types.ts

@@ -422,7 +422,6 @@ export type PointerDownState = Readonly<{
     // pointer interaction
     hasBeenDuplicated: boolean;
     hasHitCommonBoundingBoxOfSelectedElements: boolean;
-    hasHitElementInside: boolean;
   };
   withCmdOrCtrl: boolean;
   drag: {