@gamelearn/arcade-components 1.27.8 → 1.27.10

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.
@@ -140,7 +140,7 @@ var ComicComponent = function ComicComponent(_ref) {
140
140
  });
141
141
  (0, _react.useEffect)(function () {
142
142
  if (automatic) {
143
- if (slide !== null && slide !== void 0 && slide.slideTimer && (slide === null || slide === void 0 ? void 0 : slide.audio) === null) {
143
+ if (slide !== null && slide !== void 0 && slide.slideTimer) {
144
144
  start(goToNextSlide, slide.slideTimer * 1000);
145
145
  } else if ((slide === null || slide === void 0 ? void 0 : slide.audioType) === 'none' || audioFailed) {
146
146
  var _slide$vignettes$, _slide$vignettes$$tex;
@@ -188,7 +188,7 @@ var VideoVisor = function VideoVisor(_ref) {
188
188
 
189
189
  var setTimePoint = function setTimePoint(client, width, pos) {
190
190
  setIsFinish(false);
191
- videoPlayer.currentTime = parseFloat((client - pos) / width * videoPlayer.duration);
191
+ videoPlayer.currentTime = width ? parseFloat((client - pos) / width * videoPlayer.duration) : 0;
192
192
  };
193
193
 
194
194
  var restart = function restart() {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.27.8",
5
+ "version": "1.27.10",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",