Skip to content

Conversation

@zsviczian
Copy link
Collaborator

Fixes: #2006

If you touch the screen with two fingers when creating a new linear element you can create a multipoint line by adding additional points. There is a complete edit button, but this is disabled during editing of the new element. On a mobile device there is simply no way to exit the line edit mode (unless by chance you find the beginning of the line and you are able to close the loop (if you know about this trick and if you can tap precisely enough). This can be an extremely frustrating UX experience when it happens.

image

@vercel
Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Sep 12, 2024 0:45am
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Sep 12, 2024 0:45am
excalidraw-package-example-with-nextjs ✅ Ready (Inspect) Visit Preview Sep 12, 2024 0:45am
1 Skipped Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 0:45am

@zsviczian zsviczian changed the title fix Linear element complete button disabled fix: Linear element complete button disabled Sep 11, 2024
@github-actions
Copy link

github-actions bot commented Sep 11, 2024

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 66.71% (🎯 66%) 62808 / 94148
🟢 Statements 66.71% (🎯 66%) 62808 / 94148
🟢 Functions 63.87% (🎯 63%) 1874 / 2934
🟢 Branches 79.89% (🎯 70%) 7664 / 9592
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/excalidraw/actions/actionFinalize.tsx 86.54% 90% 66.66% 86.54% 48, 64, 67-68, 113-122, 155-160, 212-221
Generated in workflow #3299

@dwelle
Copy link
Member

dwelle commented Sep 12, 2024

Enabling pointer events across the whole UI isn't a good idea as it'll allow people to click buttons which will put you in an undefined state. Let's add selectors on the "finalize buttons" (mobile + non-mobile view) and force-enable pointer-events on them specifically.

@zsviczian
Copy link
Collaborator Author

Enabling pointer events across the whole UI isn't a good idea as it'll allow people to click buttons which will put you in an undefined state. Let's add selectors on the "finalize buttons" (mobile + non-mobile view) and force-enable pointer-events on them specifically.

Amazing. This turns out to be a simpler and much cleaner solution!
I didn't think I can override pointer-events like this.

@dwelle dwelle merged commit d4900e8 into master Sep 12, 2024
@dwelle dwelle deleted the zsviczian-fix-line-complete-button branch September 12, 2024 12:59
Mrazator pushed a commit to dwelle/excalidraw that referenced this pull request Sep 20, 2024
Mrazator pushed a commit to dwelle/excalidraw that referenced this pull request Sep 25, 2024
clarencechaan pushed a commit to clarencechaan/excalidraw that referenced this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: can't exit arrow tool on phone

3 participants