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,
|
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
|
||||||
|
@ -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: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user