uikit 3.21.4 → 3.21.5-dev.01bdc7f0a
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/CHANGELOG.md +0 -2
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +33 -28
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +33 -28
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +34 -29
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +34 -29
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/util/scroll.js +40 -35
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.21.
|
|
5
|
+
"version": "3.21.5-dev.01bdc7f0a",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/util/scroll.js
CHANGED
|
@@ -3,41 +3,46 @@ import { css, getEventPos, matches, on, once, scrollParents, width } from 'uikit
|
|
|
3
3
|
let prevented;
|
|
4
4
|
export function preventBackgroundScroll(el) {
|
|
5
5
|
// 'overscroll-behavior: contain' only works consistently if el overflows (Safari)
|
|
6
|
-
const off = on(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
6
|
+
const off = on(
|
|
7
|
+
el,
|
|
8
|
+
'touchstart',
|
|
9
|
+
(e) => {
|
|
10
|
+
if (e.targetTouches.length !== 1 || matches(e.target, 'input[type="range"')) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let prev = getEventPos(e).y;
|
|
15
|
+
|
|
16
|
+
const offMove = on(
|
|
17
|
+
el,
|
|
18
|
+
'touchmove',
|
|
19
|
+
(e) => {
|
|
20
|
+
const pos = getEventPos(e).y;
|
|
21
|
+
if (pos === prev) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
prev = pos;
|
|
25
|
+
|
|
26
|
+
if (
|
|
27
|
+
!scrollParents(e.target).some((scrollParent) => {
|
|
28
|
+
if (!el.contains(scrollParent)) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
let { scrollHeight, clientHeight } = scrollParent;
|
|
33
|
+
return clientHeight < scrollHeight;
|
|
34
|
+
})
|
|
35
|
+
) {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ passive: false },
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
once(el, 'scroll touchend touchcanel', offMove, { capture: true });
|
|
43
|
+
},
|
|
44
|
+
{ passive: true },
|
|
45
|
+
);
|
|
41
46
|
|
|
42
47
|
if (prevented) {
|
|
43
48
|
return off;
|