improved zoom test

This commit is contained in:
Luiz Filipe Machado Barni
2018-08-31 10:51:11 -03:00
parent 0d0e2ade40
commit 7f5d20a162
2 changed files with 15 additions and 9 deletions
+9 -9
View File
@@ -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
+6
View File
@@ -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();
}
/**