Protect click against button clicks.