Add preventDefault calls in mouse event handlers to prevent the drag image behavior in the canvas

Fixes #2108