@micromag/screen-timeline 0.3.105 → 0.3.106

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
@@ -128,7 +128,7 @@ var Timeline = function Timeline(_ref) {
128
128
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
129
129
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
130
130
  var backgroundPlaying = current && (isView || isEdit);
131
- var backgroundShouldLoad = current || active || !isView;
131
+ var mediaShouldLoad = current || active;
132
132
  var onImageLoaded = useCallback(function () {
133
133
  setImagesLoaded(imagesLoaded + 1);
134
134
  }, [imagesLoaded, setImagesLoaded]);
@@ -217,6 +217,7 @@ var Timeline = function Timeline(_ref) {
217
217
  width: imageWidth,
218
218
  resolution: resolution,
219
219
  playing: backgroundPlaying,
220
+ shouldLoad: mediaShouldLoad,
220
221
  onLoaded: onImageLoaded
221
222
  }) : null));
222
223
  break;
@@ -304,7 +305,7 @@ var Timeline = function Timeline(_ref) {
304
305
  height: height,
305
306
  resolution: resolution,
306
307
  playing: backgroundPlaying,
307
- shouldLoad: backgroundShouldLoad
308
+ shouldLoad: mediaShouldLoad
308
309
  }) : null, /*#__PURE__*/React.createElement(Container, {
309
310
  width: width,
310
311
  height: height
package/lib/index.js CHANGED
@@ -151,7 +151,7 @@ var Timeline = function Timeline(_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
+ var mediaShouldLoad = current || active;
155
155
  var onImageLoaded = React.useCallback(function () {
156
156
  setImagesLoaded(imagesLoaded + 1);
157
157
  }, [imagesLoaded, setImagesLoaded]);
@@ -240,6 +240,7 @@ var Timeline = function Timeline(_ref) {
240
240
  width: imageWidth,
241
241
  resolution: resolution,
242
242
  playing: backgroundPlaying,
243
+ shouldLoad: mediaShouldLoad,
243
244
  onLoaded: onImageLoaded
244
245
  }) : null));
245
246
  break;
@@ -327,7 +328,7 @@ var Timeline = function Timeline(_ref) {
327
328
  height: height,
328
329
  resolution: resolution,
329
330
  playing: backgroundPlaying,
330
- shouldLoad: backgroundShouldLoad
331
+ shouldLoad: mediaShouldLoad
331
332
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
332
333
  width: width,
333
334
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-timeline",
3
- "version": "0.3.105",
3
+ "version": "0.3.106",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,16 +49,16 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.105",
53
- "@micromag/element-background": "^0.3.105",
54
- "@micromag/element-call-to-action": "^0.3.105",
55
- "@micromag/element-container": "^0.3.105",
56
- "@micromag/element-heading": "^0.3.105",
57
- "@micromag/element-layout": "^0.3.105",
58
- "@micromag/element-scroll": "^0.3.105",
59
- "@micromag/element-text": "^0.3.105",
60
- "@micromag/element-visual": "^0.3.105",
61
- "@micromag/transforms": "^0.3.105",
52
+ "@micromag/core": "^0.3.106",
53
+ "@micromag/element-background": "^0.3.106",
54
+ "@micromag/element-call-to-action": "^0.3.106",
55
+ "@micromag/element-container": "^0.3.106",
56
+ "@micromag/element-heading": "^0.3.106",
57
+ "@micromag/element-layout": "^0.3.106",
58
+ "@micromag/element-scroll": "^0.3.106",
59
+ "@micromag/element-text": "^0.3.106",
60
+ "@micromag/element-visual": "^0.3.106",
61
+ "@micromag/transforms": "^0.3.106",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "fb6c28846c08f30c035ebbc162a4135b8b4d42a5"
71
+ "gitHead": "865842ef7fbdc41f89dd0891857989ded63d44c4"
72
72
  }