@micromag/viewer 0.3.804 → 0.3.805

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.
Files changed (2) hide show
  1. package/es/index.js +2 -4
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -3021,8 +3021,6 @@ var Viewer = function Viewer(_ref) {
3021
3021
  mediaCompleted = _usePlaybackContext$c3 === void 0 ? false : _usePlaybackContext$c3,
3022
3022
  _usePlaybackContext$i = _usePlaybackContext.isBackground,
3023
3023
  isBackgroundVideo = _usePlaybackContext$i === void 0 ? false : _usePlaybackContext$i,
3024
- _usePlaybackContext$m2 = _usePlaybackContext.mediaRef,
3025
- playbackMediaRef = _usePlaybackContext$m2 === void 0 ? null : _usePlaybackContext$m2,
3026
3024
  _usePlaybackContext$s = _usePlaybackContext.setMuted,
3027
3025
  setMuted = _usePlaybackContext$s === void 0 ? null : _usePlaybackContext$s;
3028
3026
  var playbackHelpVisible = useMemo(function () {
@@ -3175,7 +3173,7 @@ var Viewer = function Viewer(_ref) {
3175
3173
  setPointerDownTime(null);
3176
3174
  }, [screenIndex]);
3177
3175
  useEffect(function () {
3178
- var _ref1 = playbackMediaRef.current || {},
3176
+ var _ref1 = playbackMedia || {},
3179
3177
  mediaTagName = _ref1.tagName;
3180
3178
  var mediaIsVideo = mediaTagName === 'VIDEO';
3181
3179
  if (pointerDownTime === null || !playing || !mediaIsVideo) {
@@ -3188,7 +3186,7 @@ var Viewer = function Viewer(_ref) {
3188
3186
  return function () {
3189
3187
  return clearInterval(interval);
3190
3188
  };
3191
- }, [playing, pointerDownTime, longPressPauseDelay]);
3189
+ }, [playing, pointerDownTime, longPressPauseDelay, playbackMedia]);
3192
3190
  var onPointerDown = useCallback(function () {
3193
3191
  setPointerDownTime(Date.now());
3194
3192
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.3.804",
3
+ "version": "0.3.805",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -91,5 +91,5 @@
91
91
  "access": "public",
92
92
  "registry": "https://registry.npmjs.org/"
93
93
  },
94
- "gitHead": "0a4e4a1bf65af4345c0f1d97d0a1443f8946bcfc"
94
+ "gitHead": "5b337b3f92c002c89a978475f49048468b3c44bd"
95
95
  }