Browser : Chrome, Vivaldi,…
OS : Android
URL : https://vylety.alessykora.cz/
Video : Screen_Recording_20240401_212224_Vivaldi.mp4
Helllo, I have a problem with some of mine nested sliders on mobile. When I try to drag the slide, it slides like it is crazy. Everything works fine on Desktop version. Look at the video.
Thanks for the help!
timmse
April 2, 2024, 9:09am
2
Hi Aleš,
Thanks so much for your report!
That’s a known splide.js issue, as it only takes integers but not decimals.
opened 10:23AM - 11 Feb 21 UTC
closed 04:25PM - 09 Oct 21 UTC
Hi,
I tried to use `perPage: 2.5` in my slider. Visually, it works very well … and arrows works perfectly. But the issue starts when dragging the slider. For a reason I can't understand, the slider rewind to the first slide when the drag/touch starts (but `rewind` is not `true` in my config).
Here's my config:
```js
new Splide('.splide', {
pagination: false,
perPage: 2.5,
perMove: 1,
rewind: false,
breakpoints: {
900: {
perPage: 1.3,
}
}
}).mount();
```
Could you point me to the general direction of the code that might cause this issue?
Thank you
As mentioned in the comments, you should use padding instead: Options - Splide
Best regards,
timmse
1 Like
Hello, thank you for this! I don’t understand, why they have this issue closed. Have a nice day and thanks again.