@micromag/screen-keypad 0.3.813 → 0.3.815
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/es/index.js +2 -1
- package/package.json +18 -18
package/es/index.js
CHANGED
|
@@ -368,7 +368,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
368
368
|
_ref14$velocity = _slicedToArray(_ref14.velocity, 2),
|
|
369
369
|
vy = _ref14$velocity[1];
|
|
370
370
|
var damper = 0.5;
|
|
371
|
-
var
|
|
371
|
+
var windowHeight = typeof window !== 'undefined' ? window.innerHeight : 0;
|
|
372
|
+
var delta = windowHeight > 0 ? Math.abs(my) / windowHeight : 0;
|
|
372
373
|
var reachedThreshold = vy > 1 || delta > 0.3;
|
|
373
374
|
var progress = 0;
|
|
374
375
|
if (popupDragDirection === 'top' && my < 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-keypad",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.815",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -65,22 +65,22 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@babel/runtime": "^7.13.10",
|
|
68
|
-
"@micromag/core": "^0.3.
|
|
69
|
-
"@micromag/element-background": "^0.3.
|
|
70
|
-
"@micromag/element-button": "^0.3.
|
|
71
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
72
|
-
"@micromag/element-container": "^0.3.
|
|
73
|
-
"@micromag/element-footer": "^0.3.
|
|
74
|
-
"@micromag/element-grid": "^0.3.
|
|
75
|
-
"@micromag/element-header": "^0.3.
|
|
76
|
-
"@micromag/element-heading": "^0.3.
|
|
77
|
-
"@micromag/element-keypad": "^0.3.
|
|
78
|
-
"@micromag/element-layout": "^0.3.
|
|
79
|
-
"@micromag/element-scroll": "^0.3.
|
|
80
|
-
"@micromag/element-text": "^0.3.
|
|
81
|
-
"@micromag/element-urbania-author": "^0.3.
|
|
82
|
-
"@micromag/element-visual": "^0.3.
|
|
83
|
-
"@micromag/transforms": "^0.3.
|
|
68
|
+
"@micromag/core": "^0.3.814",
|
|
69
|
+
"@micromag/element-background": "^0.3.815",
|
|
70
|
+
"@micromag/element-button": "^0.3.814",
|
|
71
|
+
"@micromag/element-call-to-action": "^0.3.814",
|
|
72
|
+
"@micromag/element-container": "^0.3.814",
|
|
73
|
+
"@micromag/element-footer": "^0.3.814",
|
|
74
|
+
"@micromag/element-grid": "^0.3.814",
|
|
75
|
+
"@micromag/element-header": "^0.3.814",
|
|
76
|
+
"@micromag/element-heading": "^0.3.814",
|
|
77
|
+
"@micromag/element-keypad": "^0.3.814",
|
|
78
|
+
"@micromag/element-layout": "^0.3.814",
|
|
79
|
+
"@micromag/element-scroll": "^0.3.814",
|
|
80
|
+
"@micromag/element-text": "^0.3.814",
|
|
81
|
+
"@micromag/element-urbania-author": "^0.3.814",
|
|
82
|
+
"@micromag/element-visual": "^0.3.815",
|
|
83
|
+
"@micromag/transforms": "^0.3.814",
|
|
84
84
|
"@react-spring/core": "^9.6.1",
|
|
85
85
|
"@react-spring/web": "^9.6.1",
|
|
86
86
|
"@use-gesture/react": "^10.3.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"access": "public",
|
|
96
96
|
"registry": "https://registry.npmjs.org/"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "1370baa4250c76baee32c1ada1c63535d8775b1b"
|
|
99
99
|
}
|