@micromag/screen-contribution 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 +2 -1
- package/lib/index.js +2 -1
- package/package.json +2 -2
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:
|
|
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:
|
|
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.
|
|
3
|
+
"version": "0.2.408",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
|
|
76
76
|
}
|