@micromag/screen-map 0.3.792 → 0.3.796
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 +5 -2
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -123,7 +123,10 @@ function MapScreen(_ref) {
|
|
|
123
123
|
resolution = _useScreenSize.resolution;
|
|
124
124
|
var _usePlaybackContext = usePlaybackContext(),
|
|
125
125
|
muted = _usePlaybackContext.muted;
|
|
126
|
-
var
|
|
126
|
+
var _usePlaybackMediaRef = usePlaybackMediaRef(current, true),
|
|
127
|
+
mediaRef = _usePlaybackMediaRef.ref,
|
|
128
|
+
_usePlaybackMediaRef$ = _usePlaybackMediaRef.isCurrent,
|
|
129
|
+
isCurrentMedia = _usePlaybackMediaRef$ === void 0 ? false : _usePlaybackMediaRef$;
|
|
127
130
|
var _ref2 = background || {},
|
|
128
131
|
backgroundColor = _ref2.color;
|
|
129
132
|
var markerOverlayContentStyle = getStyleFromColor(backgroundColor);
|
|
@@ -141,7 +144,7 @@ function MapScreen(_ref) {
|
|
|
141
144
|
setReady = _useState4[1];
|
|
142
145
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
143
146
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
144
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
147
|
+
var backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
145
148
|
// const backgroundShouldLoad = current || active;
|
|
146
149
|
var backgroundShouldLoad = current || active;
|
|
147
150
|
var _useState5 = useState(isStatic || isCapture),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.796",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-button": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-heading": "^0.3.
|
|
70
|
-
"@micromag/element-image": "^0.3.
|
|
71
|
-
"@micromag/element-map": "^0.3.
|
|
72
|
-
"@micromag/element-scroll": "^0.3.
|
|
73
|
-
"@micromag/element-text": "^0.3.
|
|
74
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.796",
|
|
64
|
+
"@micromag/element-background": "^0.3.796",
|
|
65
|
+
"@micromag/element-button": "^0.3.796",
|
|
66
|
+
"@micromag/element-container": "^0.3.796",
|
|
67
|
+
"@micromag/element-footer": "^0.3.796",
|
|
68
|
+
"@micromag/element-header": "^0.3.796",
|
|
69
|
+
"@micromag/element-heading": "^0.3.796",
|
|
70
|
+
"@micromag/element-image": "^0.3.796",
|
|
71
|
+
"@micromag/element-map": "^0.3.796",
|
|
72
|
+
"@micromag/element-scroll": "^0.3.796",
|
|
73
|
+
"@micromag/element-text": "^0.3.796",
|
|
74
|
+
"@micromag/transforms": "^0.3.796",
|
|
75
75
|
"classnames": "^2.2.6",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
77
|
"prop-types": "^15.7.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "d3bf71e5a23e09d0cd26f543fb1327ff7eb27983"
|
|
86
86
|
}
|