From 7f5d20a162cfa1184da5fb8ec94e37cd0ed59766 Mon Sep 17 00:00:00 2001 From: Luiz Filipe Machado Barni Date: Fri, 31 Aug 2018 10:51:11 -0300 Subject: [PATCH] improved zoom test --- types/swiper/index.d.ts | 18 +++++++++--------- types/swiper/swiper-tests.ts | 6 ++++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/types/swiper/index.d.ts b/types/swiper/index.d.ts index 903d7de9f3..cbd399f139 100644 --- a/types/swiper/index.d.ts +++ b/types/swiper/index.d.ts @@ -785,15 +785,15 @@ } /** - * Object with controller parameters or boolean true to enable with default settings. For example: - * - * @example - * var mySwiper = new Swiper('.swiper-container', { - * controller: { - * inverse: true, - * }, - * }); - */ + * Object with controller parameters or boolean true to enable with default settings. For example: + * + * @example + * var mySwiper = new Swiper('.swiper-container', { + * controller: { + * inverse: true, + * }, + * }); + */ interface ControllerOptions { /** * Pass here another Swiper instance or array with Swiper instances that should be controlled diff --git a/types/swiper/swiper-tests.ts b/types/swiper/swiper-tests.ts index 68effec9fc..b7a4e28200 100644 --- a/types/swiper/swiper-tests.ts +++ b/types/swiper/swiper-tests.ts @@ -667,6 +667,12 @@ function zoom() { prevEl: '.swiper-button-prev', }, }); + + swiper.zoom.out(); + swiper.zoom.disable(); + swiper.zoom.enabled === false; + swiper.zoom.enable(); + swiper.zoom.in(); } /**