@micromag/screen-map 0.2.406 → 0.2.412

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 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: current || active
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: current || active
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.406",
3
+ "version": "0.2.412",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,17 +49,17 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.405",
53
- "@micromag/element-background": "^0.2.406",
54
- "@micromag/element-button": "^0.2.405",
55
- "@micromag/element-call-to-action": "^0.2.405",
56
- "@micromag/element-container": "^0.2.405",
57
- "@micromag/element-heading": "^0.2.405",
58
- "@micromag/element-image": "^0.2.406",
59
- "@micromag/element-map": "^0.2.405",
60
- "@micromag/element-scroll": "^0.2.405",
61
- "@micromag/element-text": "^0.2.405",
62
- "@micromag/transforms": "^0.2.405",
52
+ "@micromag/core": "^0.2.412",
53
+ "@micromag/element-background": "^0.2.412",
54
+ "@micromag/element-button": "^0.2.412",
55
+ "@micromag/element-call-to-action": "^0.2.412",
56
+ "@micromag/element-container": "^0.2.412",
57
+ "@micromag/element-heading": "^0.2.412",
58
+ "@micromag/element-image": "^0.2.412",
59
+ "@micromag/element-map": "^0.2.412",
60
+ "@micromag/element-scroll": "^0.2.412",
61
+ "@micromag/element-text": "^0.2.412",
62
+ "@micromag/transforms": "^0.2.412",
63
63
  "classnames": "^2.2.6",
64
64
  "lodash": "^4.17.21",
65
65
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
72
+ "gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
73
73
  }