-
Notifications
You must be signed in to change notification settings - Fork 294
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
add Passive event listener arguments to .on() #113
Comments
This already works because selection.on just passes through the optional third capture argument without any consideration as to what it means or what type it has. For example: d3.select("body").on("click", () => console.log("click"), {once: true}) So, the simplest thing to do would be to rename capture in the documentation (and internal parts of the code) to options, and then close this issue. |
excuse me,How can I use passive for zoom? I see code is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
talking about this:
https://dom.spec.whatwg.org/#dictdef-eventlisteneroptions
for more information:
https://medium.com/@devlucky/about-passive-event-listeners-224ff620e68c#.1awhbyd87
could be good to add:
on(type:string, listener?:$$.ValueFunction, capture?:boolean, options?):this;
and then you could do .on('click',()=>,{passive: true});
The text was updated successfully, but these errors were encountered: