-
https://codesandbox.io/p/sandbox/2dk9tp QQ2025428-155842.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
simonwep
Apr 30, 2025
Replies: 2 comments 1 reply
-
Interesting, I'll have a closer look at this later! It's rather strange that the selection only pops up after dropping the element, might even be a bug. Edit: Alright, this is a bug I'd say, a strange one if elements are draggable. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I took a closer look at it and it seems best if you handle it from a case-to-case basis. For example, you can cancel the selection immediately if a drag occurs: document.addEventListener('dragstart', () => {
selection.cancel();
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simonwep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I took a closer look at it and it seems best if you handle it from a case-to-case basis. For example, you can cancel the selection immediately if a drag occurs: