diff --git a/index.html b/index.html
index 24eac68..b48f62c 100644
--- a/index.html
+++ b/index.html
@@ -21,6 +21,7 @@
if (app.ports !== undefined && app.ports.registerVideo !== undefined) {
app.ports.registerVideo.subscribe(function(args) {
+ window.scrollTo(0, 0);
var time = parseInt(args[2], 10) || undefined;
requestAnimationFrame(function() {
@@ -41,6 +42,7 @@
if (app.ports !== undefined && app.ports.eraseVideo !== undefined) {
app.ports.eraseVideo.subscribe(function() {
+ window.scrollTo(0, 0);
lastId = undefined;
});
}