How to block default mouse drag selection

I have some custom logic that runs on mouseup of a left mouse drag.
I would prefer the components to not be selected after my function finishes, is this possible?

I tried something like this, but it gave me an error no overload matches delegate

canvas.MouseUp -= GH_WindowSelectInteraction.RespondToMouseUp;