diff --git a/package.json b/package.json index 409114c9..7f027146 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "svelte": "^2.13.5" }, "dependencies": { - "rrweb": "^0.6.5" + "rrweb": "^0.6.7" }, "scripts": { "build": "rollup -c", diff --git a/src/Controller.html b/src/Controller.html index b2030625..a1ba8454 100644 --- a/src/Controller.html +++ b/src/Controller.html @@ -2,7 +2,7 @@
{formatTime(currentTime)} -
+
1) { + percent = 1; + } + const { meta, replayer, isPlaying } = this.get(); + const timeOffset = meta.totalTime * percent; + this.set({ currentTime: timeOffset }); + replayer.play(timeOffset); + if (!isPlaying) { + replayer.pause(); + } + }, }, onupdate({ changed, current, previous }) { if (current.replayer && !previous) { @@ -193,6 +210,7 @@ background: #eee; position: relative; border-radius: 3px; + cursor: pointer; } .rr-progress__step {