-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Make whole element clickable in view mode when it has hyperlink #4735
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/2cEFL6XzHYwePk8sNGhaFFLsteZR |
Cool. One thing: we should disable click-through if you drag between (This affects edit mode as well, but to a much smaller degree since the clickable hitboxes are only the small icons.) |
I am instead checking the pointer down and pointer up coords are exactly same as for click event it should be same then only redirect |
exact match is too strict. I tend to make micro movements a lot when clicking using a mouse. |
But when its a click the pointer events will be same else it means that there was some movement? |
There is a tiny movement, yes. Hence the |
Hello, Thanks, |
@yeger00 the only reason for not making the element clickable in mobile was since there isn't any tooltip when you hover over the item so it might not be very intutive that it would open a link as soon as you click on it. |
@ad1992 Thank you for your comment. Let me know what you think. |
ScreenFlow.mp4