workaround for cancelling gesture