Skip to content
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

handleDragstart with dragHandle, emit drag without dragging #43

Open
Jerd0 opened this issue Mar 19, 2024 · 1 comment
Open

handleDragstart with dragHandle, emit drag without dragging #43

Jerd0 opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Jerd0
Copy link

Jerd0 commented Mar 19, 2024

if we have dragHandle, handleDragstart - is triggered if we try to drag element which is outside of the dragHandle class, but drag is not starting

https://stackblitz.com/edit/vitejs-vite-xghckt?file=src%2Fcomponents%2Ftest.vue

try to drag element by <div> with some number, not by <div>drag me</div> to reproduce

@sashamilenkovic sashamilenkovic self-assigned this Mar 19, 2024
@Jerd0 Jerd0 changed the title handleDragstart with dragHandle, looks strange handleDragstart with dragHandle, emit drag without dragging Mar 19, 2024
@sashamilenkovic
Copy link
Contributor

@Jerd0 Agreed! handleDragstart should only be invoked when dragging the dragHandle element. It fires when dragging any part of the child element.

@sashamilenkovic sashamilenkovic added the bug Something isn't working label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants