Replies: 1 comment
-
Not the cleanest, but this would work: ds.subscribe("predragstart", ({ event }) => {
if(ds.getSelectables().includes(event?.target) && !event?.target?.classList.contains("ds-selected")) {
ds.stop();
setTimeout(() => ds.start());
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a gallery with lightbox functionality and I use drag to select the images in the gallery. My main issue is that for the user to open the lightbox it needs to click the image and that selects the image.
Is there a way to only select elements with dragging and not clicking?
Beta Was this translation helpful? Give feedback.
All reactions