fix: check if hitting link in handleSelectionOnPointerDown (#5589)
fix: check if hitting link in handleSelectionOnPoiinterDown
This commit is contained in:
parent
ad0c4c4c78
commit
38e8ae46c9
@ -3660,14 +3660,14 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
|
|
||||||
if (pointerDownState.hit.element) {
|
if (pointerDownState.hit.element) {
|
||||||
// Early return if pointer is hitting link icon
|
// Early return if pointer is hitting link icon
|
||||||
if (
|
const hitLinkElement = this.getElementLinkAtPosition(
|
||||||
isPointHittingLinkIcon(
|
{
|
||||||
pointerDownState.hit.element,
|
x: pointerDownState.origin.x,
|
||||||
this.state,
|
y: pointerDownState.origin.y,
|
||||||
[pointerDownState.origin.x, pointerDownState.origin.y],
|
},
|
||||||
this.device.isMobile,
|
pointerDownState.hit.element,
|
||||||
)
|
);
|
||||||
) {
|
if (hitLinkElement) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pointerDownState.hit.hasHitElementInside =
|
pointerDownState.hit.hasHitElementInside =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user