fix the problem that the app freezes when longpress out of range in collection view