Skip to content

Commit 3645aab

Browse files
committed
Fix Small Positioning Bug
1 parent b335af7 commit 3645aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Public.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ extension TextLayoutManager {
7979

8080
if fragment.width == 0 {
8181
return linePosition.range.location + fragmentPosition.range.location
82-
} else if fragment.width < point.x - edgeInsets.left {
82+
} else if fragment.width <= point.x - edgeInsets.left {
8383
return findOffsetAfterEndOf(fragmentPosition: fragmentPosition, in: linePosition)
8484
} else {
8585
return findOffsetAtPoint(inFragment: fragment, point: point, inLine: linePosition)

0 commit comments

Comments
 (0)