@micromag/screen-contribution 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
@@ -106,6 +106,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
106
106
  isCapture = _useScreenRenderConte.isCapture;
107
107
 
108
108
  var backgroundPlaying = current && (isView || isEdit);
109
+ var backgroundShouldLoad = current || active || !isView;
109
110
  var transitionPlaying = current;
110
111
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
111
112
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
@@ -416,7 +417,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
416
417
  width: width,
417
418
  height: height,
418
419
  playing: backgroundPlaying,
419
- shouldLoad: current || active
420
+ shouldLoad: backgroundShouldLoad
420
421
  }) : null, /*#__PURE__*/React.createElement(Container, {
421
422
  width: width,
422
423
  height: height
package/lib/index.js CHANGED
@@ -127,6 +127,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
127
127
  isCapture = _useScreenRenderConte.isCapture;
128
128
 
129
129
  var backgroundPlaying = current && (isView || isEdit);
130
+ var backgroundShouldLoad = current || active || !isView;
130
131
  var transitionPlaying = current;
131
132
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
132
133
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
@@ -437,7 +438,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
437
438
  width: width,
438
439
  height: height,
439
440
  playing: backgroundPlaying,
440
- shouldLoad: current || active
441
+ shouldLoad: backgroundShouldLoad
441
442
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
442
443
  width: width,
443
444
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-contribution",
3
- "version": "0.2.406",
3
+ "version": "0.2.412",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -52,17 +52,17 @@
52
52
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
53
53
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
54
54
  "@fortawesome/react-fontawesome": "^0.1.13",
55
- "@micromag/core": "^0.2.405",
56
- "@micromag/data": "^0.2.405",
57
- "@micromag/element-background": "^0.2.406",
58
- "@micromag/element-button": "^0.2.405",
59
- "@micromag/element-call-to-action": "^0.2.405",
60
- "@micromag/element-container": "^0.2.405",
61
- "@micromag/element-heading": "^0.2.405",
62
- "@micromag/element-scroll": "^0.2.405",
63
- "@micromag/element-text": "^0.2.405",
64
- "@micromag/element-text-input": "^0.2.405",
65
- "@micromag/transforms": "^0.2.405",
55
+ "@micromag/core": "^0.2.412",
56
+ "@micromag/data": "^0.2.412",
57
+ "@micromag/element-background": "^0.2.412",
58
+ "@micromag/element-button": "^0.2.412",
59
+ "@micromag/element-call-to-action": "^0.2.412",
60
+ "@micromag/element-container": "^0.2.412",
61
+ "@micromag/element-heading": "^0.2.412",
62
+ "@micromag/element-scroll": "^0.2.412",
63
+ "@micromag/element-text": "^0.2.412",
64
+ "@micromag/element-text-input": "^0.2.412",
65
+ "@micromag/transforms": "^0.2.412",
66
66
  "classnames": "^2.2.6",
67
67
  "lodash": "^4.17.21",
68
68
  "prop-types": "^15.7.2",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
75
+ "gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
76
76
  }