Skip to content

Commit ca2568b

Browse files
authored
Bug fixed when using the decimal number in slidesToShow.
1 parent 47efafd commit ca2568b

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/PageBuilder/view/base/web/js/content-type/products/appearance/carousel

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/base/web/js/content-type/products/appearance/carousel/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ define([
2727
$carouselElement.slick('unslick');
2828
}
2929

30-
config.slidesToScroll = config.slidesToShow;
30+
config.slidesToScroll = Math.round(config.slidesToShow);
3131
$carouselElement.slick(config);
3232
}
3333

0 commit comments

Comments
 (0)