`cosole.error` for passive event listener in Chrome54+ #1119

Closed
sculove opened this Issue Dec 29, 2016 · 0 comments

Projects

None yet

1 participant

@sculove
Collaborator
sculove commented Dec 29, 2016

I test iScroll demo file in Chrome55.
I'm face a error message.

2016-12-29 10 37 55

There is an error in this code.

document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

cause

If an event listener is added to the document, body, or window and is a scroll blocking (touchstart, touchmove) listener it will be have passive options to be true
and we will face a following error

@sculove sculove added a commit that referenced this issue Dec 29, 2016
@sculove sculove fix bug of demos for chrome54+
ref #1119
ae1bcff
@sculove sculove closed this in #1120 Dec 29, 2016
@sculove sculove self-assigned this Dec 29, 2016
@sculove sculove added a commit that referenced this issue Dec 29, 2016
@sculove sculove fix isPassive function
ref #1119
975bf52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment