classic-rocket
classic-rocket copied to clipboard
Image slider changes to last slide on orientation change
- Add 2 or more images to a product.
- Open the product in front office.
- Use mobile device or dev mode on desktop.
- Change orientation or resize the window.
- 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
Here is how the product slider is behaving on home page: https://drive.google.com/open?id=1FMU9kBPkaRdR5bxa_ySkiRVqg3v-P-ho
Please, have you found any solution to this problem?
try thhis in custom.js : `$(window).on("orientationchange",function(){ $(window).one('resize', function() { $('[data-slick]').slick('reinit'); });
});`