Conversation
… creating multipoint lines
|
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/vjeux/excalidraw/ih9g0u3t1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The done button for drawing arrows seems to be off by one. It only shows after you have added three points instead of two. When you confirm, it drops the last segment of the arrow |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
There’s a small jump while dragging elements
Usually when I see this kind of bugs, it’s an issue where we don’t keep track of the offset where the element was started being dragged and instead we use the center. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
(Just to be clear, I’m just posting here all the things I’m seeing around mobile support, they are not required to be addressed in this PR) |
Fixed.
If you use the mouse to click two segments, then move to a third point without clicking, then hit enter, you’ll see the same thing. Not sure how to resolve it. |
That's a different thing with the mouse. The last point isn't committed yet, so it's correct that upon confirm it's discarded. |
|
|
|
I guess conditionally remove the last point only if not on mobile. |
|
I’m also thinking of cases like Windows laptops where you might lay points down with a mouse or touch. |
|
I think the best option would be to record the pointer the most recent point was laid down with and only remove it if the pointer is a mouse. How would I store that so the finalize action can access it but it isn’t permanently stored in the document? |
I can’t reproduce this on an iPhone 8 or simulated iPhone 11. |
I haven't checked the code. Yes, the best way is to identify whether you're in the created-temp-arrow-point mode and act on that. |
|
This might also be related to the fact that tapping once to start a line actually creates two points. |
|
Is this in a state to be merged in? If yes, we should probably do it and continue support in a follow up. |
|
@lipis Weird — I can’t repro on iOS. I’ll try to use an Android emulator in the future, but I suspect it’ll be fixed by switching those buttons to be radio buttons, which I plan to do as part of a future refactor. |
|
Good to go @vjeux — I moved the incomplete tasks back to the issue. |
|
I disagree that the mobile UI should have less features because it’s on a phone. I use the lock icon a lot when drawing shapes with a bunch of lines. I wish we didn’t totally remove it as it’s useful. I’m happy for it being behind a menu. |
For rendering we always use mouse in order to check which handles to display but when doing the hit test, we used pointer which has a different size. So we couldn't use the middle handles for small shapes. This is now fixed. cc @j-f1 as you added it in excalidraw#790
* Edit Farsi translations (excalidraw#788) * Add a Ukrainian translation (excalidraw#786) * Add a Ukrainian translation * Clarify some strings in the Ukrainian translation * feat: change dock position (excalidraw#774) * feat: change dock position * fix grid row and column * add top position * fix responsive for the top position * change content side * fix overflowing menu * [improvement] theme on body (excalidraw#790) * Update Tldraw.tsx * Add theme on body, adjust dark page options dialog * fix test * Preparing for global integration (excalidraw#775) * Update translations.ts * Create en.json * Make main translation default * Remove unused locale property of translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix language menu * Update ar.json (excalidraw#793) * feature/add Hebrew translations (excalidraw#792) * hebrew translations * pr fixes Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix toolspanel item position (excalidraw#791) * fix toolspanel item position * add translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Add remote caching * Adds link to translation guide (excalidraw#794) Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com> Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Co-authored-by: gadi246 <gadi246@gmail.com>
* Edit Farsi translations (excalidraw#788) * Add a Ukrainian translation (excalidraw#786) * Add a Ukrainian translation * Clarify some strings in the Ukrainian translation * feat: change dock position (excalidraw#774) * feat: change dock position * fix grid row and column * add top position * fix responsive for the top position * change content side * fix overflowing menu * [improvement] theme on body (excalidraw#790) * Update Tldraw.tsx * Add theme on body, adjust dark page options dialog * fix test * Preparing for global integration (excalidraw#775) * Update translations.ts * Create en.json * Make main translation default * Remove unused locale property of translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix language menu * Update ar.json (excalidraw#793) * feature/add Hebrew translations (excalidraw#792) * hebrew translations * pr fixes Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix toolspanel item position (excalidraw#791) * fix toolspanel item position * add translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Add remote caching * Adds link to translation guide (excalidraw#794) * Update ar.json (excalidraw#795) * [feature] readonly link (excalidraw#796) * Copy readonly link * Update [id].tsx * Add readonly label * update psuedohash * Update utils.ts Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com> Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Co-authored-by: gadi246 <gadi246@gmail.com>

Ref #138