block by micahstubbs 4de7f2d492518a4a2ae0e2c65bde8e74

zoom & drag event filtering

Full Screen

an es2015 iteration on the block D3 event filtering from @pkerpedjiev

this iteration also makes sure the title text is not accidentally selected when attemption to drag over an un-draggable red circle:

  svg.selectAll('text')
    .style('-webkit-user-select', 'none') /* Chrome/Safari */
    .style('-moz-user-select', 'none') /* Firefox */
    .style('-ms-user-select', 'none') /* IE10+ */

credit to this stackoverflow answer for the styles to make text un-selectable in most browsers

index.html

lebab.sh

vis.js