@micromag/screen-map 0.2.407 → 0.2.408
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/lib/index.js +2 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -129,6 +129,7 @@ var MapScreen = function MapScreen(_ref) {
|
|
|
129
129
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
130
130
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
131
131
|
var backgroundPlaying = current && (isView || isEdit);
|
|
132
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
132
133
|
|
|
133
134
|
var _useState5 = useState(isStatic || isCapture),
|
|
134
135
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -474,7 +475,7 @@ var MapScreen = function MapScreen(_ref) {
|
|
|
474
475
|
width: width,
|
|
475
476
|
height: height,
|
|
476
477
|
playing: backgroundPlaying,
|
|
477
|
-
shouldLoad:
|
|
478
|
+
shouldLoad: backgroundShouldLoad
|
|
478
479
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
479
480
|
width: width,
|
|
480
481
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -151,6 +151,7 @@ var MapScreen = function MapScreen(_ref) {
|
|
|
151
151
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
152
152
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
153
153
|
var backgroundPlaying = current && (isView || isEdit);
|
|
154
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
154
155
|
|
|
155
156
|
var _useState5 = React.useState(isStatic || isCapture),
|
|
156
157
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
@@ -496,7 +497,7 @@ var MapScreen = function MapScreen(_ref) {
|
|
|
496
497
|
width: width,
|
|
497
498
|
height: height,
|
|
498
499
|
playing: backgroundPlaying,
|
|
499
|
-
shouldLoad:
|
|
500
|
+
shouldLoad: backgroundShouldLoad
|
|
500
501
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
501
502
|
width: width,
|
|
502
503
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.408",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
|
|
73
73
|
}
|