@micromag/screen-title 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
@@ -110,6 +110,7 @@ var TitleScreen = function TitleScreen(_ref) {
110
110
  var transitionPlaying = current;
111
111
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
112
112
  var backgroundPlaying = current && (isView || isEdit);
113
+ var backgroundShouldLoad = current || active || !isView;
113
114
  var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
114
115
 
115
116
  var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React.createElement(Spacer, {
@@ -177,7 +178,7 @@ var TitleScreen = function TitleScreen(_ref) {
177
178
  width: width,
178
179
  height: height,
179
180
  playing: backgroundPlaying,
180
- shouldLoad: current || active
181
+ shouldLoad: backgroundShouldLoad
181
182
  }) : null, /*#__PURE__*/React.createElement(Container, {
182
183
  width: width,
183
184
  height: height
package/lib/index.js CHANGED
@@ -131,6 +131,7 @@ var TitleScreen = function TitleScreen(_ref) {
131
131
  var transitionPlaying = current;
132
132
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
133
133
  var backgroundPlaying = current && (isView || isEdit);
134
+ var backgroundShouldLoad = current || active || !isView;
134
135
  var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
135
136
 
136
137
  var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
@@ -198,7 +199,7 @@ var TitleScreen = function TitleScreen(_ref) {
198
199
  width: width,
199
200
  height: height,
200
201
  playing: backgroundPlaying,
201
- shouldLoad: current || active
202
+ shouldLoad: backgroundShouldLoad
202
203
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
203
204
  width: width,
204
205
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-title",
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
  }