@iris.interactive/handcook 2.9.37 → 2.9.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Welcome to HandCook 👨‍🍳
2
- ![Version](https://img.shields.io/badge/version-2.9.37-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.9.38-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "2.9.37",
3
+ "version": "2.9.38",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -120,6 +120,7 @@ export class HcSlider {
120
120
  crossFade: true
121
121
  };
122
122
  }
123
+ this.options['watchOverflow'] = true;
123
124
  }
124
125
 
125
126
  buildDom() {
@@ -197,6 +198,10 @@ export class HcSlider {
197
198
  swiper.$el.find('.swiper-slide-active').addClass('hc-slider-slide-active');
198
199
  swiper.$el.find('.swiper-slide-next').addClass('hc-slider-slide-next');
199
200
  swiper.$el.find('.swiper-slide-prev').addClass('hc-slider-slide-prev');
201
+
202
+ if (swiper.isLocked) {
203
+ swiper.$el.addClass('hc-slider-lock');
204
+ }
200
205
  },
201
206
  slideChangeTransitionEnd: (swiper) => {
202
207