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

afterdrag event? #7

Closed
mbostock opened this issue May 6, 2016 · 2 comments
Closed

afterdrag event? #7

mbostock opened this issue May 6, 2016 · 2 comments
Assignees

Comments

@mbostock
Copy link
Member

mbostock commented May 6, 2016

As nice as it is to process the drag gestures independently, we might also need a hook for running code after all the active pointers have moved. Hopefully this will allow us to build a zoom gesture on top of the drag gesture…

@mbostock mbostock self-assigned this May 6, 2016
@mbostock
Copy link
Member Author

mbostock commented May 7, 2016

This’ll probably require unifying the separate move and end listeners for each pointer, and instead use reference tracking, like the zoom behavior does in D3 3.x. But that’s not so bad.

mbostock added a commit that referenced this issue May 7, 2016
@mbostock mbostock mentioned this issue May 7, 2016
11 tasks
@mbostock
Copy link
Member Author

mbostock commented May 9, 2016

I’d like to avoid this for now. I don’t think the zoom behavior will be built on top of the drag behavior. Typically the number of touches is tiny (1-2) so the cost of something like re-rendering twice during drag is negligible.

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

1 participant