fix: adding check for link length to prevent early return (#4982)
Co-authored-by: Connor Hanafee <connorp@Connors-MacBook-Pro.local> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -337,6 +337,9 @@ export const isPointHittingLinkIcon = (
|
||||
[x, y]: Point,
|
||||
isMobile: boolean,
|
||||
) => {
|
||||
if (!element.link || appState.selectedElementIds[element.id]) {
|
||||
return false;
|
||||
}
|
||||
const threshold = 4 / appState.zoom.value;
|
||||
if (
|
||||
!isMobile &&
|
||||
|
Reference in New Issue
Block a user