refactor: remove unused attribute hasHitElementInside from pointerDownState (#5591)
This commit is contained in:
parent
b5fd904808
commit
32aa79164b
@ -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
|
||||
|
@ -422,7 +422,6 @@ export type PointerDownState = Readonly<{
|
||||
// pointer interaction
|
||||
hasBeenDuplicated: boolean;
|
||||
hasHitCommonBoundingBoxOfSelectedElements: boolean;
|
||||
hasHitElementInside: boolean;
|
||||
};
|
||||
withCmdOrCtrl: boolean;
|
||||
drag: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user