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

This commit is contained in:
Aakansha Doshi 2022-08-18 19:11:18 +05:30 committed by GitHub
parent b5fd904808
commit 32aa79164b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

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

View File

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