Skip to content

Commit

Permalink
fix: Anchor scroll bug (#247)
Browse files Browse the repository at this point in the history
* fix/anchorScroll

* 1.0.74

* fecs

* fix v2
  • Loading branch information
dongshihao authored Dec 5, 2017
1 parent 1434b70 commit f607137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip",
"version": "1.0.73",
"version": "1.0.74",
"description": "mobile instant page",
"main": "dist/mip.js",
"dependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion src/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ define(function (require) {
Hash.prototype.bindAnchor = function () {
var anchor = this.hashTree.mipanchor;
if (anchor && anchor.value) {
if (document.readyState === 'complete') {
if (document.readyState !== 'loading') {
this.scrollToAnchor(anchor);
}
else {
Expand Down

0 comments on commit f607137

Please sign in to comment.