Hi @jordio. From my testing of your repro, it seems that it prints for any click that originates from the widget. This is what I observed:
If I press on the button and release on the button, it prints.
If I press on the button and release off the button, it prints.
If I press off the button and release on the button, it DOES NOT print.
This seems like the correct behavior to me and it is consistent with our docstring:
`clicked_fn : Callable[[], None]`
Sets the function that will be called when when the button is activated (i.e., pressed down then released while the mouse cursor is inside the button).
`mouse_pressed_fn : Callable`
Sets the function that will be called when the user presses the mouse button inside the widget. The function should be like this: void onMousePressed(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier) Where: 'button' is the number of the mouse button pressed. 'modifier' is the flag for the keyboard modifier key.
`mouse_released_fn : Callable`
Sets the function that will be called when the user releases the mouse button if this button was pressed inside the widget. void onMouseReleased(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)
Let me know if you are seeing something different.
You can also submit bugs to our ServiceDesk portal which is a more private option: Jira Service Management. I’ll likely still be the first to triage it. :)