mouseup and click events now work correctly after dragging and dropping a shape