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

The default filter should return false if event.ctrlKey. #181

Closed
mbostock opened this issue Aug 7, 2019 · 1 comment
Closed

The default filter should return false if event.ctrlKey. #181

mbostock opened this issue Aug 7, 2019 · 1 comment

Comments

@mbostock
Copy link
Member

mbostock commented Aug 7, 2019

Ref. d3/d3-drag#62

@MwumLi
Copy link

MwumLi commented Sep 6, 2019

@mbostock Although this commit Fix #181 - ignore control-click. solve the curren issue, but it prevents the double-value pinch zoom operation under mac.

Now, if you want to use the two-finger pinch zoom in the v5 version, you must reset the filter:

zoom.filter(() => !d3.event.button);

Look demo: Mac 下双指捏合缩放 d3 v5

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

No branches or pull requests

2 participants