Skip to content

Commit d241525

Browse files
authored
Math.floor was used instead of Math.round to round down.
1 parent ca2568b commit d241525

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 = Math.round(config.slidesToShow);
30+
config.slidesToScroll = Math.floor(config.slidesToShow);
3131
$carouselElement.slick(config);
3232
}
3333

0 commit comments

Comments
 (0)