vue3-carousel icon indicating copy to clipboard operation
vue3-carousel copied to clipboard

Slide should have the ability to differentiate between click and drag event

Open AndreiBil opened this issue 1 year ago • 2 comments

Hello,

Issue: At this moment if inside the slide I have the image wrapped inside an tag, I cant seem to drag the image so that I can go to the next slide, it acts like a click event instead and redirects me to wherever the points.

Request: I would like so that when I grab the image and drag it, to be considered a drag instead of a click event so that I can go to the next slide. And only if I click it, to act like a click event and redirect me the whatever the href value is.

AndreiBil avatar Sep 27 '23 10:09 AndreiBil

That's a frustrating issue... I had something similar in Hooper, but at least I've been able to fix it by firing e.preventDefault when isSliding is true, but vue3-carousel overrides my vue-events and still clicks on a link somewhere in handleDragEnd.

I kinda fixed it by adding pointer-events: none; to .is-dragging class, I hope there will be no side effects...

DreaMinder avatar Dec 12 '23 20:12 DreaMinder

i have some problem ((

MKsenni avatar Apr 07 '24 17:04 MKsenni