drag conflict with selection and draw nodes off edge of canvas

bugs solved:
1. On Chrome browser, dragging graph nodes gets confused with drag-selection, causing painting issues (not a problem on other browsers).
2. JIT graph sometimes draws nodes off edge of canvas.