Skip to content

Button becomes un-clickable on scrolling to next page #91

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
eni9889 opened this issue Feb 3, 2022 · 6 comments
Closed

Button becomes un-clickable on scrolling to next page #91

eni9889 opened this issue Feb 3, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@eni9889
Copy link

eni9889 commented Feb 3, 2022

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.

@Albermonte
Copy link

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

@julipinto
Copy link

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

@fnavarijo
Copy link

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:

event.preventDefault();

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?

@eni9889
Copy link
Author

eni9889 commented Jun 23, 2022

Still having this same issue on mobile only

@CoryParsnipson
Copy link
Contributor

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?

@vadimkorr
Copy link
Owner

Released in 1.0.20

@vadimkorr vadimkorr added the bug Something isn't working label Sep 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants