glidejs / glide

A dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more
https://glidejs.com
MIT License
7.32k stars 771 forks source link

Last slide removes early on iOS #404

Open michaelsmedley opened 5 years ago

michaelsmedley commented 5 years ago

Hi

I have implemented glide in numerous places on a site, however in one instance the behaviour is a bit wierd, and only on modern iOS devices (this was done on the iPhone Emulator in X-Code)

basically, I have a list that I go through with the following conifguration:

new Glide(`.glide`, {
      type: 'carousel',
      autoplay: 5000,
      hoverpause: false,
      perView: 1
    }).mount({ Autoplay });

And I have a ul with three li, following the documented code structure. On all other devices, the carousel works fine and loops as expected, however on iOS, when it gets to the last slide, it removes itself instantly, then carries on after the defined autoplay duration.

Below is a gif that basically displays the problem. When I look at the source code, it seems to be going to the first clone li instantly (the timer is about 10 seconds I think so there is a delay before it starting ha)

I hope this all makes sense and is easily sortable, any help is much appreciated

Thanks all

glide-scroller

carlosjunod commented 5 years ago

Hi @michaelsmedley I'm facing the same issue, did you find any fix?

michaelsmedley commented 5 years ago

Literally nothing so far, my solution was just to duplicate the list items a few times so the issue still ocurrs, just not as often

On Fri, 4 Oct 2019, 05:33 carlosjunod, notifications@github.com wrote:

Hi @michaelsmedley https://github.com/michaelsmedley I'm facing the same issue, did you find any fix?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/glidejs/glide/issues/404?email_source=notifications&email_token=AAPSAJ6WACJBZFW4QDS2JZ3QM3BTNA5CNFSM4INCMHI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKLK6A#issuecomment-538228088, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPSAJ2DHUVBCONAHPJL523QM3BTNANCNFSM4INCMHIQ .

carlosjunod commented 5 years ago

probably I will have to do something like that for now, I will keep researching... if I find a solution I'll let you know... :)

thank you @michaelsmedley

michaelsmedley commented 5 years ago

Awesome - good luck, will be great to hear if you find anything

On Fri, 4 Oct 2019, 06:05 carlosjunod, notifications@github.com wrote:

probably I will have to do something like that for now, I will keep researching... if I find a solution I'll let you know... :)

thank you @michaelsmedley https://github.com/michaelsmedley

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/glidejs/glide/issues/404?email_source=notifications&email_token=AAPSAJ5R7GTMA4DOVE66WVLQM3FJNA5CNFSM4INCMHI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKNGXQ#issuecomment-538235742, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPSAJ5WRGDXGQQGCWSLZY3QM3FJNANCNFSM4INCMHIQ .