jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

Reload called on scroll in iOS Safari #818

Closed jamiesarakinis closed 7 years ago

jamiesarakinis commented 7 years ago

In the plugin initialization, reload is called on window resize events. In iOS Safari, resize events are called on page scroll, which is causing the carousel to behave undesirably in some circumstances. I've handled this by removing the $(window).on('resize.jcarousel', this.onWindowResize) call from the create function, but it may be useful to include an option to disable this behavior

jsor commented 7 years ago

Thanks for the report. I've pushed a fix in 3f180bc7982833350f572caecbb07efc94f78f6f which checks if the window dimension actually changed. Could you test the patch and report back if that fixes the issue? Thanks!

jamiesarakinis commented 7 years ago

Thanks, that has fixed the issue

jsor commented 7 years ago

Thanks for the confirmation. Fix released in 0.3.5.