Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓手机滚动下一页会出现白屏,getOffset方法可以兼容一下 #234

Closed
yangyan123 opened this issue Jun 8, 2020 · 3 comments

Comments

@yangyan123
Copy link

## 安卓手机滚动下一页会出现白屏
撸了下代码发现是getOffset方法有块地方不兼容 ,第686行     
   return document.documentElement[this.directionKey];
可替换为
 return document.documentElement[this.directionKey]||document.body[this.directionKey];


  getOffset: function getOffset() {
        if (this.pageMode) {
          return document.documentElement[this.directionKey]||document.body[this.directionKey];
        } else {
          var root = this.$refs.root;
          return root ? Math.ceil(root[this.directionKey]) : 0;
        }
      },

@tangbc
Copy link
Owner

tangbc commented Jun 8, 2020

你的页面是不是没加 DTD(<!doctype html>)?

@yangyan123
Copy link
Author

你的页面是不是没加DTD(<!doctype html>)?
加了

tangbc added a commit that referenced this issue Jun 10, 2020
@tangbc
Copy link
Owner

tangbc commented Jun 10, 2020

感谢定位,在 v2.2.8 版本修复了。

@tangbc tangbc closed this as completed Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants