Comments (15)
Ran into the same issue
from react-slick.
Related to kenwheeler/slick#412
if we upgrade the slick version we are using here, it would fix
from react-slick.
I've run into the same issue. On desktop, onClick events work as expected, but on mobile (whether in the chrome simulator or on an actual phone) onClick events don't go through. Thinking that this may have been related to facebook/react#1169, I added cursor: pointer on all clickable elements, but that did not solve the problem.
from react-slick.
@yankrasny Can you make a gist or jsfiddle? From which I can reporduce this issue? It will help a lot.
from react-slick.
@vramana sure, I'll try to get you an example later today. Thanks for the quick response.
from react-slick.
Hey @vramana, here are the jsfiddles for desktop and mobile.
Desktop: https://jsfiddle.net/yankrasny/hug2f0r1/6/
Mobile (access from a mobile or a simulator, I used chrome): https://jsfiddle.net/m/rvt/
The behavior is to display the link that was last clicked as proof that the onClick event went through. It works on desktop but not on mobile.
You'll also notice that on desktop, clicking any of the slides brings you back to the first one. I believe @haohcraft is right and this may be related to kenwheeler/slick#412.
from react-slick.
This is also happening for me.
from react-slick.
@akiran any update on this?
from react-slick.
@stevemckenzie Can you test the fix in 0.6.1 version
from react-slick.
Just tested version 0.6.1 and the issue appears to be fixed. Thank you!
from react-slick.
Thank you @akiran ! This definitely fixes the ability to touch links in slides.
I thought this was going to fix the automatically scrolling back to the first item when you start scrolling the page issue too but it didn't.
from react-slick.
@stevemckenzie Can you open a separate issue for the scrolling issue.
from react-slick.
how can I get version 0.6.1 with this fix? Available versions using bower are 0.5.0, 0.4.1 and 0.3.1
from react-slick.
I created a github release with 0.6.4 version.
Now you should be able to get it from bower
from react-slick.
Thank you very much! @akiran
from react-slick.
Related Issues (20)
- Pagination Dots Not Activating Correctly with decimal Values for slidesToShow and infinite: false. HOT 1
- Question: Smooth Scrolling HOT 1
- CenterMode with Infinite and Variable Width not centering properly HOT 5
- Missing settings and defaultValues in default props HOT 1
- error Assignment to constant variable. HOT 1
- Customize arrows and dots inside a div so that we can position the main div of arrows and dots anywhere for Next.js 14. HOT 2
- CenterMode : false is not working
- WaitForAnimate: Animates opposite way HOT 1
- No skipping back when resized
- Slider with only one slide item not displaying properly HOT 2
- Centermode and VariableWidth not working HOT 1
- UI is broken when changing version from 0.29.0 -> 0.30.2 with one image.
- How to hide button next/prev arrow in react slick
- variableWidth: true, infinite: false not disabling the next arrow button when the last element enters the viewport HOT 2
- Forcing slide animation when scrolling up and down on mobile
- Slider isn't aligned left HOT 2
- Change width of the center slide only
- Performance issue with clones (infinite)
- initialSlide is ignored on breakpoints HOT 1
- currentSlide from afterChange event shows decimal when using SlidesToShow as decimal and infinite:false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-slick.