Avoid background tap

This allow devs to avoid cancelling when the users taps in the background.