Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

passive event listener #1245

Open
songlilei opened this issue Jul 18, 2018 · 3 comments
Open

passive event listener #1245

songlilei opened this issue Jul 18, 2018 · 3 comments

Comments

@songlilei
Copy link

when using iscroll on my mobile project, there always a err on the console

Unable to preventDefault inside passive event listener due to target being treated as passive

and then I checked the iscroll code ,and find out the err origin ,it from the row 473:if ( this.options.preventDefault ) { // increases performance on Android? TODO: check! e.preventDefault(); }
I guess the iscroll should consider the passive attr of the addEventListener, and promote the _move handler, please consider and promote the code, thanks.

@Denny966
Copy link

Denny966 commented Aug 1, 2018

Same issue here.

@yanyeAbbr
Copy link

+1

@lgc
Copy link

lgc commented Aug 13, 2018

Same issue here.
How to resolve?

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

No branches or pull requests

4 participants