From b97286f57813bd9d5874a4ec563a511b61b1b2e9 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Wed, 11 Aug 2021 16:02:59 +0300 Subject: [PATCH] feat(core): `watchOverflow` is now enabled by default --- src/core/defaults.js | 2 +- src/types/swiper-options.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/defaults.js b/src/core/defaults.js index fef22115a..695f46592 100644 --- a/src/core/defaults.js +++ b/src/core/defaults.js @@ -57,7 +57,7 @@ export default { centerInsufficientSlides: false, // Disable swiper and hide navigation when container not overflow - watchOverflow: false, + watchOverflow: true, // Round length roundLengths: false, diff --git a/src/types/swiper-options.d.ts b/src/types/swiper-options.d.ts index 8d62aa43e..cf82b63ef 100644 --- a/src/types/swiper-options.d.ts +++ b/src/types/swiper-options.d.ts @@ -192,7 +192,7 @@ export interface SwiperOptions { * When enabled Swiper will be disabled and hide navigation buttons on * case there are not enough slides for sliding. * - * @default false + * @default true */ watchOverflow?: boolean;