classic-rocket icon indicating copy to clipboard operation
classic-rocket copied to clipboard

Image slider changes to last slide on orientation change

Open Hlavtox opened this issue 5 years ago • 3 comments

  1. Add 2 or more images to a product.
  2. Open the product in front office.
  3. Use mobile device or dev mode on desktop.
  4. Change orientation or resize the window.
  5. Slick slider changes to (I think) the last photo and looses sync.

Additional info classic-rocket develop Prestashop 1.7.6 Faceted search 3.2.1

Video https://drive.google.com/file/d/1Jqj6SdJX-drjF0oAeaOFZUjyxfhdTcRi/view?usp=sharing

Hlavtox avatar Sep 10 '19 22:09 Hlavtox

Here is how the product slider is behaving on home page: https://drive.google.com/open?id=1FMU9kBPkaRdR5bxa_ySkiRVqg3v-P-ho

MockoB avatar Sep 12 '19 17:09 MockoB

Please, have you found any solution to this problem?

etsmes avatar Jan 22 '20 23:01 etsmes

try thhis in custom.js : `$(window).on("orientationchange",function(){ $(window).one('resize', function() { $('[data-slick]').slick('reinit'); });

});`

prestarocket avatar Jan 23 '20 06:01 prestarocket