@gamelearn/arcade-components 1.27.8 → 1.27.9

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.
@@ -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.9",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",