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

Button becomes un-clickable on scrolling to next page

Open eni9889 opened this issue 2 years ago • 5 comments

I have the following sandbox: https://codesandbox.io/s/svelte-typescript-forked-l0d9f?file=/src/App.svelte:379-392

As you can see when you click on the first one button there is a log message but clicking on the second one button nothing happens.

eni9889 avatar Feb 03 '22 00:02 eni9889

Same here, but only happening on mobile. No button inside the carousel can be pressed. Removing swiping and pauseOnFocus did nothing

Albermonte avatar Mar 20 '22 12:03 Albermonte

Any resolutions to this problem? I'm facing the same but just in mobile or mobile mode in the browser

julipinto avatar Apr 30 '22 14:04 julipinto

Hello everyone. I also have the same issue, only for mobile and mobile mode in the browser. Playing a little bit with the source code, I was able to find that the responsible is this line: https://github.com/vadimkorr/svelte-carousel/blob/67c227995b439046c0346a8935e594927b0801ae/src/actions/swipeable/swipeable.js#L73

The handleUp is being called by the event added on handleDown function on the same file. Is there any reason why the event.preventDefault() was added there?

fnavarijo avatar May 17 '22 18:05 fnavarijo

Still having this same issue on mobile only

eni9889 avatar Jun 23 '22 03:06 eni9889

I made the change that @fnavarijo suggested and saw that everything seemed to work as expected after that. I opened a pull request to remove the lines.

I am trying to come up with a workaround in the meantime, but I don't think I have enough experience. I wonder if there is a way to add a new event listener that intercepts clicks to the carousel particles and calls the right event listener?

CoryParsnipson avatar Jun 24 '22 00:06 CoryParsnipson

Released in 1.0.20

vadimkorr avatar Sep 03 '22 10:09 vadimkorr