fix an issue where DblClick event fired incorrectly after dragging

After dragging a shape, if you click the canvas quick enough, the double click events fired.