Closed HafiTheCat closed 2 months ago
Does it still happen if you press Ctrl+s to save before moving the copied object? Are you copying with Ctrl+c Ctrl+v or duplicating with alt+drag?
Above (https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/1867#issue-2392352379) I use Ctrl+c
, Ctrl+v
.
When I paste the object, the save-on-change occurs. When moving the object after this save has finished, the above-mentioned issue does not appear. However, if I move the object before this save has completed, it moves the text, thus causing the issue. I cannot force-save (Ctrl+s
), as a pop-up appears that says "Force save aborted because saving is in progress", which is reasonable. So once I paste the object and let the save-on-change finish, this issue does not appear, and I can freely drag around the rectangle without its inner text moving.
With alt+drag
I could not get this issue to appear.
There is indeed an automatic save after a paste operation. I reduced the delay when this save happens from 300ms to 30ms in 2.2.9. Based on my testing that has resolved this issue.
I will release 2.2.9 later today, once released, please test and let me know if it has resolved the issue for you.
Indeed, the smaller delay fixed this issue now.
Thank you!
Describe the bug
When copying a rectangle with inner text, there is a small time frame where nudging the copied rectangle detaches the inner text and moves it out along the direction the box was moved to.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
My expectation is that the inner text moves with the rectangle at all times.
I have checked...
I checked the release notes, and I am using the newest version as stated below and it still occurs.
These issues (#538 , #1400 ) report very similar issues, however for me this occurs already by using a rectangle with inner text.
The debug info for my system is the following:
Screenshots
https://github.com/zsviczian/obsidian-excalidraw-plugin/assets/58081895/0f0d3380-9fca-48ec-8288-785fdd850c23
Additional context
The debug info of the sandbox: