Prevent text fields cursor from being stuck on n-1 character when clicking on the end of the text field
This commit is contained in:
@@ -134,6 +134,9 @@ int GetTextTagInternalPosFromRenderPos(const wchar_t * src, int src_len, int off
|
||||
i += len;
|
||||
}
|
||||
|
||||
if (offset >= output_len)
|
||||
return src_len;
|
||||
|
||||
return internal_offset;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user