mirror of
https://github.com/excalidraw/excalidraw.git
synced 2024-11-10 11:35:52 +01:00
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) {
|
||||
// Early return if pointer is hitting link icon
|
||||
if (
|
||||
isPointHittingLinkIcon(
|
||||
pointerDownState.hit.element,
|
||||
this.state,
|
||||
[pointerDownState.origin.x, pointerDownState.origin.y],
|
||||
this.device.isMobile,
|
||||
)
|
||||
) {
|
||||
const hitLinkElement = this.getElementLinkAtPosition(
|
||||
{
|
||||
x: pointerDownState.origin.x,
|
||||
y: pointerDownState.origin.y,
|
||||
},
|
||||
pointerDownState.hit.element,
|
||||
);
|
||||
if (hitLinkElement) {
|
||||
return false;
|
||||
}
|
||||
pointerDownState.hit.hasHitElementInside =
|
||||
|
Loading…
Reference in New Issue
Block a user