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

PC端企业微信内置浏览器,无法滚动 #47

Closed
gaga-change opened this issue Jul 4, 2018 · 3 comments
Closed

PC端企业微信内置浏览器,无法滚动 #47

gaga-change opened this issue Jul 4, 2018 · 3 comments

Comments

@gaga-change
Copy link

gaga-change commented Jul 4, 2018

问题出在它的内置浏览器window对象带有ontouchstart事件。但是并不会生效。

// PC端企业微信内置浏览器
'ontouchstart' in window === true

我临时在插件调用前判断了一下才得以处理。

if (~navigator.userAgent.toLowerCase().indexOf('windowswechat')) {
	delete window.ontouchstart
}
@zhoushengmufc
Copy link
Owner

多谢提供解决方案

@gaga-change
Copy link
Author

(^_^)

@shichengyu921228
Copy link

请问具体是在哪里判断啊 我做了判断 但是可能是位置不对 没有生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants