MouseCallback e.Cancel not working in last version of Rhino 8

Hello everyone,
My implementation of MouseCallback use to work in previous versions of Rhino 8 but now it doesn’t cancel the original click when i use e.Cancel.

protected override void OnMouseDown(MouseCallbackEventArgs e)
{
    if (e.MouseButton == MouseButton.Left)
    { 
        e.Cancel = true; 
    }
}

Is this problem known already or am i missing something ?

I am sorry, i still have the same problem even after the last update.
Maybe @dale you can help me on this ?

Hi @BONDU,

From what I can tell, MouseCallback works the same in Rhino 8 as it did in Rhino 7. I don’t see any recent changes to the source.

Honestly, I’m not sure the e.Canel property is used.

What is your expectation? By setting e.Cancel = true are you expecting not to receive a mouse up message?

– Dale

Thank you for your response, Dale.
I’m trying to cancel the original click in the view and run my own code instead.
I’ve set it up for OnMouseUp and OnMouseDown, but I still get the click in the viewport that selects objects or creates a selection box when I click and drag.