splide icon indicating copy to clipboard operation
splide copied to clipboard

Rewind not working when there are more than three slides on Firefox

Open sitoexpress opened this issue 2 years ago • 4 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

4.1.4

Description

The rewind setting is buggy on Firefox when there are a lot of slides and perPage is set to more than 3.

When perPage is equal to 3, sometimes it works sometimes not. When perPage is more than 3, it likely won't work, ever (the slider is stuck at the end)

I am using both Autoscroll & Intersection extensions, all latest from jsDelivr

It works fine on Chrome

Reproduction Link

https://codepen.io/frafor/pen/XWBrJmX

Steps to Reproduce

  1. Create a slider with many slides, f.eg 12 or 14
  2. Use Autoscroll, set rewind to true, set perPage to more than 3
  3. Wait for the slider to rewind: it won't

Expected Behaviour

The slider should rewind

sitoexpress avatar Dec 16 '22 11:12 sitoexpress

Your demo is working on my FireFox. When your slider reaches ends, it rewinds to start:

https://user-images.githubusercontent.com/38066259/208098018-035654cb-b1ce-47f4-b45c-4d22ad24c8f3.mp4

Can you give me more details?

NaotoshiFujita avatar Dec 16 '22 12:12 NaotoshiFujita

Oh that's weird

I've made further investigations:

It works every time on my 15,6" FullHD Notebook display It stops every time on my 24" FullHD HDMI display

If I move the browser Window from my 24" to the 15.6", then it rewinds back

The issue is Firefox-only, Chrome is always rewinding

Windows 10, text/app dimension set to 125% in screen option

sitoexpress avatar Dec 16 '22 12:12 sitoexpress

Then it's hard to fix the issue since I don't have your display. I checked it on other 3 monitors, but it did not happen...

NaotoshiFujita avatar Dec 17 '22 07:12 NaotoshiFujita

Ok I do understand that's a very rare case and it's likely impossible to debug, if you cannot reproduce. I have two Lenovo 24", and I will check on other models on monday.

sitoexpress avatar Dec 17 '22 21:12 sitoexpress