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,
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