diff --git a/examples/basic.html b/examples/basic.html
index e7c460b..e5ffb25 100755
--- a/examples/basic.html
+++ b/examples/basic.html
@@ -2,6 +2,7 @@
+
Basic
diff --git a/examples/dev.html b/examples/dev.html
index adb2580..c3d2659 100755
--- a/examples/dev.html
+++ b/examples/dev.html
@@ -2,6 +2,8 @@
+
+
Dev
diff --git a/examples/file.html b/examples/file.html
index 79aef97..a123d3a 100644
--- a/examples/file.html
+++ b/examples/file.html
@@ -8,6 +8,7 @@
+
App
diff --git a/lib/ComicBook.js b/lib/ComicBook.js
index 8e8b5e0..1bd26a4 100755
--- a/lib/ComicBook.js
+++ b/lib/ComicBook.js
@@ -562,9 +562,6 @@ var ComicBook = (function ($) {
if (getHash() !== pointer) {
setHash(pointer + 1);
}
-
- // make sure the top of the page is in view
- window.scroll(0, scrollY);
};
/**
@@ -588,6 +585,9 @@ var ComicBook = (function ($) {
self.drawPage();
} catch (e) {}
}
+
+ // make sure the top of the page is in view
+ window.scroll(0, 0);
};
/**
@@ -611,8 +611,10 @@ var ComicBook = (function ($) {
pointer -= (options.displayMode === 'single' || is_double_page_spread) ? 1 : 2;
self.drawPage();
}
- };
+ // make sure the top of the page is in view
+ window.scroll(0, 0);
+ };
ComicBook.prototype.brightness = function () {
self.enhance.brightness({ brightness: $(this).val() });