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

使用IScroll遇到的一些坑 #10

Open
lensh opened this issue Jul 28, 2017 · 0 comments
Open

使用IScroll遇到的一些坑 #10

lensh opened this issue Jul 28, 2017 · 0 comments

Comments

@lensh
Copy link
Owner

lensh commented Jul 28, 2017

一、IScroll移动端很卡,不流畅
只需要给wrapper元素加上:touch-action:none !important; 即可,不允许默认的touch行为。

二、在手机页面上onclick事件失效
在实例化IScroll时把click选项设置为true即可,也就是需要手动派发事件,不要设置preventDefault

@lensh lensh changed the title IScroll移动端很卡,不流畅 使用IScroll遇到的一些坑 Jul 28, 2017
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

1 participant