Skip to content

Fix removeEventListener calls - #3

Open
scyclops wants to merge 1 commit into
stephenkingsley:masterfrom
scyclops:patch-1
Open

Fix removeEventListener calls#3
scyclops wants to merge 1 commit into
stephenkingsley:masterfrom
scyclops:patch-1

Conversation

@scyclops

@scyclops scyclops commented May 2, 2019

Copy link
Copy Markdown

No description provided.

@stephenkingsley

stephenkingsley commented May 7, 2019

Copy link
Copy Markdown
Owner

I don't know why you were set passive false? Cause if you do not set passive, event.preventDefault() will be call as normal.

ps. you can click this link

image

@scyclops

scyclops commented May 7, 2019

Copy link
Copy Markdown
Author

I only set passive to false in the removeEventListener calls because the addEventListener calls in the existing code have passive set to false. This pull request doesn't change the addEventListener calls. But for removeEventListener calls to work, they must have the same arguments as the calls to addEventListener.

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener

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

Successfully merging this pull request may close these issues.

2 participants