checkign distance for touchend of div.device