fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -902,10 +902,10 @@ class RichTextEditingController extends TextEditingController {
// emoji tap
if (offset == range.start) {
if (e.emote != null) {
final cloestOffset = textPainter.getClosestGlyphForOffset(localPos);
if (cloestOffset != null) {
final offsetRect = cloestOffset.graphemeClusterLayoutBounds;
final offsetRange = cloestOffset.graphemeClusterCodeUnitRange;
final closestOffset = textPainter.getClosestGlyphForOffset(localPos);
if (closestOffset != null) {
final offsetRect = closestOffset.graphemeClusterLayoutBounds;
final offsetRange = closestOffset.graphemeClusterCodeUnitRange;
if (lastTapDownPosition.dx > offsetRect.right) {
return offsetRange.end;
} else {