|
|
@ -799,6 +799,26 @@ class _QuillEditorSelectionGestureDetectorBuilder |
|
|
|
} |
|
|
|
} |
|
|
|
super.onSingleLongTapEnd(details); |
|
|
|
super.onSingleLongTapEnd(details); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool _positionWasOnSelectionExclusive(TextPosition textPosition) { |
|
|
|
|
|
|
|
final TextSelection? selection = renderEditor!.selection; |
|
|
|
|
|
|
|
if (selection == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return selection.start < textPosition.offset |
|
|
|
|
|
|
|
&& selection.end > textPosition.offset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool _positionWasOnSelectionInclusive(TextPosition textPosition) { |
|
|
|
|
|
|
|
final TextSelection? selection = renderEditor!.selection; |
|
|
|
|
|
|
|
if (selection == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return selection.start <= textPosition.offset |
|
|
|
|
|
|
|
&& selection.end >= textPosition.offset; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Signature for the callback that reports when the user changes the selection |
|
|
|
/// Signature for the callback that reports when the user changes the selection |
|
|
@ -1946,24 +1966,4 @@ class RenderEditableContainerBox extends RenderBox |
|
|
|
return defaultComputeDistanceToFirstActualBaseline(baseline)! + |
|
|
|
return defaultComputeDistanceToFirstActualBaseline(baseline)! + |
|
|
|
_resolvedPadding!.top; |
|
|
|
_resolvedPadding!.top; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool _positionWasOnSelectionExclusive(TextPosition textPosition) { |
|
|
|
|
|
|
|
final TextSelection? selection = renderEditor!.selection; |
|
|
|
|
|
|
|
if (selection == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return selection.start < textPosition.offset |
|
|
|
|
|
|
|
&& selection.end > textPosition.offset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool _positionWasOnSelectionInclusive(TextPosition textPosition) { |
|
|
|
|
|
|
|
final TextSelection? selection = renderEditor!.selection; |
|
|
|
|
|
|
|
if (selection == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return selection.start <= textPosition.offset |
|
|
|
|
|
|
|
&& selection.end >= textPosition.offset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|