Near as I can tell, Node-Red's ui_button only "triggers" on release - as I discovered when working on this topic...
ui_button
However there are some solutions - such as creating your own button ...