I can't figure out if d3.zoom has a bug or if I'm improperly using it.
I want to have the zooming feature AND a zoom reset feature. Try the following steps:
- Drag the box to another location using the mouse
- Press SHIRT+R to reset the zoom
- Drag the box again using the mouse
What you'll notice is that on step #3, the box will continue dragging as if step #2 never occurred. The same problem exists for all the zoom types such as mouse wheel for zooming in and out. Any zoom event that occurs after the reset acts as if the reset never happened.
What am I missing?