Accepted answer

Solved it. Here's the link to the gist with the solution.

How I fixed each problem:

  • The zoom problem was fixed by making the zoom handler trigger on the underlying SVG element, not an overlaying rectangle like it was previously.
  • The drag problem was fixed by adjusting the drag function to take into account the current level of zooming

Related Query

More Query from same tag