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

Better-scoll in the sliding process the following error that Browser is Google #9

Closed
ghost opened this issue Jan 5, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2017

Better-scoll in the sliding process the following error:
。Browser: Google
。Version:56
。Desc:“Unable to preventDefault inside passive event listener due to target being treated as passive.”

@Becavalier
Copy link

Becavalier commented Feb 3, 2017

Add a check of "e.cancelable" before doing e.preventDefault() in function "_move(e)".

FYI: https://www.chromestatus.com/features/5093566007214080

@ustbhuangyi
Copy link
Owner

fixed

@RByers
Copy link

RByers commented Feb 17, 2017

Sorry for the trouble, this is a breaking change in Chrome 56 to improve scroll performance. If you still want to disable the browser's scrolling, this is best done with an appropriate touch-action CSS rule (which is necessary to work correctly with touch on IE/Edge anyway).

@neurotoxinvx
Copy link
Contributor

@RByers Thanks for your advice

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

4 participants