block by mbostock 35964711079355050ff1

Zoom vs. Click

Full Screen

This example demonstrates how to disambiguate a click from a zoom gesture using d3.event.defaultPrevented. Click and drag to pan, mousewheel to zoom, or click the background to briefly highlight it.

index.html