From 32aa79164bb784299a8da5aee10e62404d5b12f6 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Thu, 18 Aug 2022 19:11:18 +0530 Subject: [PATCH] refactor: remove unused attribute hasHitElementInside from pointerDownState (#5591) --- src/components/App.tsx | 7 ------- src/types.ts | 1 - 2 files changed, 8 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index d806e58e..4314c3d3 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3492,7 +3492,6 @@ class App extends React.Component { origin, selectedElements, ), - hasHitElementInside: false, }, drag: { hasOccurred: false, @@ -3670,12 +3669,6 @@ class App extends React.Component { 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 diff --git a/src/types.ts b/src/types.ts index c5929e52..db6647f1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -422,7 +422,6 @@ export type PointerDownState = Readonly<{ // pointer interaction hasBeenDuplicated: boolean; hasHitCommonBoundingBoxOfSelectedElements: boolean; - hasHitElementInside: boolean; }; withCmdOrCtrl: boolean; drag: {