8000 d3.behavior.{zoom,drag} should pan with inertia · Issue #2096 · d3/d3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

d3.behavior.{zoom,drag} should pan with inertia #2096

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

Closed
mbostock opened this issue Oct 30, 2014 · 5 comments
Closed

d3.behavior.{zoom,drag} should pan with inertia #2096

mbostock opened this issue Oct 30, 2014 · 5 comments
Milestone

Comments

@mbostock
Copy link
Member

Most slippy map interfaces now use inertia, so we should too.

@mbostock mbostock added the req label Oct 30, 2014
@mbostock mbostock added this to the 3.4.x milestone Oct 30, 2014
@mbostock mbostock modified the milestones: 3.5, 3.4.x Nov 10, 2014
@jasondavies
Copy link
Contributor

Couple of questions:

  • Should inertia be configurable?
  • Should it be on by default?

I think the answer is probably yes to both of these.

@mbostock
Copy link
Member Author

Agreed. I think the configurable inertia is effectively a drag coefficient.

@mbostock mbostock modified the milestones: 3.5, 3.6 Dec 6, 2014
@TWiStErRob
Copy link

+1, I would want to set on/off and friction
(maybe turn off by setting friction to a value which means infinitely sticky)

@mbostock mbostock changed the title d3.behavior.zoom should pan with inertia d3.behavior.{zoom,drag} should pan with inertia Jul 18, 2015
@mbostock mbostock modified the milestones: 3.6, 4.0 Oct 22, 2015
@huned
Copy link
huned commented Apr 3, 2016

@mbostock have you seen the implementation of inertial drag behavior here? http://bl.ocks.org/pjanik/5872514

@silviocacamo
Copy link

I add a transition() on zoom callback and voilà.

@mbostock mbostock modified the milestones: 4.0, Icebox Jul 14, 2016
@mbostock mbostock closed this as completed Jan 6, 2017
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

5 participants
0