fixed doubleclicking at edges