mbostock/d3 — Issue #341: d3.behavior.zoom doesn't handle manual changes to domain
Author: tandu
Created: 2011-10-14 17:59:23+00:00
State: open

In my application I have graph that can be zoomed and panned. Also it can be animated to some predefined region if click over mark (I change x.domain()). The issue is that when I click (on mouseup d3_behavior_zoomMousemove is called) over graph (not mark) it restores the position and scale that were before the animation start. I tried to set x.__domain = null; when click over mark to reset behavior.zoom, but it doesn't help. I mentioned the animation to show how I use it, obviously the problem is that d3.behavior clones graph original location and scale and then ignores their changes from outside.