@micromag/screen-slideshow 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
@@ -78,6 +78,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
78
78
  isCapture = _useScreenRenderConte.isCapture;
79
79
 
80
80
  var backgroundPlaying = current && (isView || isEdit);
81
+ var backgroundShouldLoad = current || active || !isView;
81
82
  var finalSpacing = isPlaceholder ? 5 : spacing;
82
83
 
83
84
  var _useState = useState(0),
@@ -187,7 +188,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
187
188
  width: width,
188
189
  height: height,
189
190
  playing: backgroundPlaying,
190
- shouldLoad: current || active
191
+ shouldLoad: backgroundShouldLoad
191
192
  }) : null, /*#__PURE__*/React.createElement(Container, {
192
193
  width: width,
193
194
  height: height
package/lib/index.js CHANGED
@@ -95,6 +95,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
95
95
  isCapture = _useScreenRenderConte.isCapture;
96
96
 
97
97
  var backgroundPlaying = current && (isView || isEdit);
98
+ var backgroundShouldLoad = current || active || !isView;
98
99
  var finalSpacing = isPlaceholder ? 5 : spacing;
99
100
 
100
101
  var _useState = React.useState(0),
@@ -204,7 +205,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
204
205
  width: width,
205
206
  height: height,
206
207
  playing: backgroundPlaying,
207
- shouldLoad: current || active
208
+ shouldLoad: backgroundShouldLoad
208
209
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
209
210
  width: width,
210
211
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-slideshow",
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
  }