@micromag/screen-ranking 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
@@ -95,6 +95,7 @@ var RankingScreen = function RankingScreen(_ref) {
95
95
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
96
96
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
97
97
  var backgroundPlaying = current && (isView || isEdit);
98
+ var backgroundShouldLoad = current || active || !isView;
98
99
  var elements = (finalItems || []).map(function (item, itemI) {
99
100
  var _ref2 = item || {},
100
101
  _ref2$title = _ref2.title,
@@ -206,7 +207,7 @@ var RankingScreen = function RankingScreen(_ref) {
206
207
  width: width,
207
208
  height: height,
208
209
  playing: backgroundPlaying,
209
- shouldLoad: current || active
210
+ shouldLoad: backgroundShouldLoad
210
211
  }) : null, /*#__PURE__*/React.createElement(Container, {
211
212
  width: width,
212
213
  height: height
package/lib/index.js CHANGED
@@ -116,6 +116,7 @@ var RankingScreen = function RankingScreen(_ref) {
116
116
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
117
117
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
118
118
  var backgroundPlaying = current && (isView || isEdit);
119
+ var backgroundShouldLoad = current || active || !isView;
119
120
  var elements = (finalItems || []).map(function (item, itemI) {
120
121
  var _ref2 = item || {},
121
122
  _ref2$title = _ref2.title,
@@ -227,7 +228,7 @@ var RankingScreen = function RankingScreen(_ref) {
227
228
  width: width,
228
229
  height: height,
229
230
  playing: backgroundPlaying,
230
- shouldLoad: current || active
231
+ shouldLoad: backgroundShouldLoad
231
232
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
232
233
  width: width,
233
234
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-ranking",
3
- "version": "0.2.407",
3
+ "version": "0.2.408",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "6e9f2acd39ad4982b571b91c406d30c59f4be473"
71
+ "gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
72
72
  }