Fixed isCursorInShape for ellipse