modify longpress state