onTripleTapWithPosition method

void onTripleTapWithPosition(
  1. Offset localPosition,
  2. RenderBox renderBox,
  3. Widget widget
)

Implementation

void onTripleTapWithPosition(
  Offset localPosition,
  RenderBox renderBox,
  Widget widget,
) {
  final paragraph = renderBox as RenderFluentParagraph;
  final bounds = paragraph.getLineBoundsAtOffset(localPosition);
  if (bounds == null) return;

  document.cursor.moveTo(bounds.startFrag, bounds.startOff);
  document.cursor.focusTo(bounds.endFrag, bounds.endOff);

  _syncSelectionManager(document);
  document.syncPendingFontWithCursor();
  // Triple-tap does NOT mutate content: cursor-only update.
  document.cursorOnlyUpdate();
}