Workaround for prompt on touchend bug