If you’re pressing a button and want to cancel you can pretty much universally just move off the button before releasing the press and it won’t trigger the action. Works 99% of the time with a mouse, almost as often with a touch interface. Some custom-coded buttons will action on start press (not great imo) and some buttons do some other action on a long press, but if you’re holding it and nothing else has happened just dragging off is safe enough.
If you’re pressing a button and want to cancel you can pretty much universally just move off the button before releasing the press and it won’t trigger the action. Works 99% of the time with a mouse, almost as often with a touch interface. Some custom-coded buttons will action on start press (not great imo) and some buttons do some other action on a long press, but if you’re holding it and nothing else has happened just dragging off is safe enough.
onmouseup vs onmousedown on click settings. Early days of computers/programs were less forgiving when you clicked it started the action