@mixd-id/web-scaffold 0.1.230406191 → 0.1.230406192
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/package.json +1 -1
- package/src/components/Carousel.vue +18 -11
package/package.json
CHANGED
|
@@ -249,17 +249,15 @@ export default{
|
|
|
249
249
|
|
|
250
250
|
disableBodyScroll(){
|
|
251
251
|
this.scrollPosition = window.pageYOffset || document.documentElement.offsetTop
|
|
252
|
-
document.body.style.
|
|
253
|
-
document.body.style.
|
|
252
|
+
document.body.classList.add(this.$style.htmlNoScroll)
|
|
253
|
+
document.body.classList.add(this.$style.bodyNoScroll)
|
|
254
254
|
document.body.style.top = `-${this.scrollPosition}px`;
|
|
255
|
-
document.body.style.width = '100%';
|
|
256
255
|
},
|
|
257
256
|
|
|
258
257
|
enableBodyScroll(){
|
|
259
|
-
document.body.style.removeProperty('overflow');
|
|
260
|
-
document.body.style.removeProperty('position');
|
|
261
258
|
document.body.style.removeProperty('top');
|
|
262
|
-
document.body.style.
|
|
259
|
+
document.body.classList.remove(this.$style.bodyNoScroll)
|
|
260
|
+
document.body.classList.remove(this.$style.htmlNoScroll)
|
|
263
261
|
window.scrollTo(0, this.scrollPosition);
|
|
264
262
|
},
|
|
265
263
|
|
|
@@ -318,11 +316,6 @@ export default{
|
|
|
318
316
|
overflow: hidden;
|
|
319
317
|
position: relative;
|
|
320
318
|
background-image: v-bind(bgImages[0]);
|
|
321
|
-
/*touch-action: none;*/
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.comp.noTouchAction{
|
|
325
|
-
/*touch-action: none;*/
|
|
326
319
|
}
|
|
327
320
|
|
|
328
321
|
.comp img{
|
|
@@ -365,7 +358,21 @@ export default{
|
|
|
365
358
|
@apply bg-primary-500;
|
|
366
359
|
}
|
|
367
360
|
|
|
361
|
+
.htmlNoScroll{
|
|
362
|
+
min-height: 100.3%;
|
|
363
|
+
overscroll-behavior-y: none;
|
|
364
|
+
height: 100%;
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
}
|
|
368
367
|
.bodyNoScroll{
|
|
368
|
+
overscroll-behavior: none;
|
|
369
|
+
overscroll-behavior-y: none;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
position: fixed;
|
|
372
|
+
width: 100%;
|
|
373
|
+
margin: 0;
|
|
374
|
+
max-height: 100%;
|
|
375
|
+
-webkit-overflow-scrolling: touch;
|
|
369
376
|
}
|
|
370
377
|
|
|
371
378
|
@media screen(md){
|