@micromag/screen-text 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 CHANGED
@@ -91,6 +91,7 @@ var TextScreen = function TextScreen(_ref) {
91
91
  var transitionPlaying = current;
92
92
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
93
93
  var backgroundPlaying = current && (isView || isEdit);
94
+ var backgroundShouldLoad = current || active || !isView;
94
95
  var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
95
96
 
96
97
  var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React.createElement(Spacer, {
@@ -148,7 +149,7 @@ var TextScreen = function TextScreen(_ref) {
148
149
  width: width,
149
150
  height: height,
150
151
  playing: backgroundPlaying,
151
- shouldLoad: current || active
152
+ shouldLoad: backgroundShouldLoad
152
153
  }) : null, /*#__PURE__*/React.createElement(Container, {
153
154
  width: width,
154
155
  height: height
package/lib/index.js CHANGED
@@ -111,6 +111,7 @@ var TextScreen = function TextScreen(_ref) {
111
111
  var transitionPlaying = current;
112
112
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
113
113
  var backgroundPlaying = current && (isView || isEdit);
114
+ var backgroundShouldLoad = current || active || !isView;
114
115
  var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
115
116
 
116
117
  var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
@@ -168,7 +169,7 @@ var TextScreen = function TextScreen(_ref) {
168
169
  width: width,
169
170
  height: height,
170
171
  playing: backgroundPlaying,
171
- shouldLoad: current || active
172
+ shouldLoad: backgroundShouldLoad
172
173
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
173
174
  width: width,
174
175
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-text",
3
- "version": "0.2.407",
3
+ "version": "0.2.408",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "6e9f2acd39ad4982b571b91c406d30c59f4be473"
69
+ "gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
70
70
  }