@@ -448,7 +448,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
448
448
}
449
449
}
450
450
451
- bool _isPositionSelected (TapDragUpDetails details) {
451
+ bool _isPositionSelected (TapUpDetails details) {
452
452
if (_state.controller.document.isEmpty ()) {
453
453
return false ;
454
454
}
@@ -471,7 +471,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
471
471
}
472
472
473
473
@override
474
- void onTapDown (TapDragDownDetails details) {
474
+ void onTapDown (TapDownDetails details) {
475
475
if (_state.configurations.onTapDown != null ) {
476
476
if (renderEditor != null &&
477
477
_state.configurations.onTapDown !(
@@ -492,7 +492,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
492
492
}
493
493
494
494
@override
495
- void onSingleTapUp (TapDragUpDetails details) {
495
+ void onSingleTapUp (TapUpDetails details) {
496
496
if (_state.configurations.onTapUp != null &&
497
497
renderEditor != null &&
498
498
_state.configurations.onTapUp !(
@@ -671,7 +671,6 @@ class RenderEditor extends RenderEditableContainerBox
671
671
Document document;
672
672
TextSelection selection;
673
673
bool _hasFocus = false ;
674
- bool get hasFocus => _hasFocus;
675
674
LayerLink _startHandleLayerLink;
676
675
LayerLink _endHandleLayerLink;
677
676
@@ -878,28 +877,20 @@ class RenderEditor extends RenderEditableContainerBox
878
877
}
879
878
880
879
Offset ? _lastTapDownPosition;
881
- Offset ? _lastSecondaryTapDownPosition;
882
-
883
- Offset ? get lastSecondaryTapDownPosition => _lastSecondaryTapDownPosition;
884
880
885
881
// Used on Desktop (mouse and keyboard enabled platforms) as base offset
886
882
// for extending selection, either with combination of `Shift` + Click or
887
883
// by dragging
888
884
TextSelection ? _extendSelectionOrigin;
889
885
890
- void handleSecondaryTapDown (TapDownDetails details) {
891
- _lastTapDownPosition = details.globalPosition;
892
- _lastSecondaryTapDownPosition = details.globalPosition;
893
- }
894
-
895
886
@override
896
887
void handleTapDown (TapDownDetails details) {
897
888
_lastTapDownPosition = details.globalPosition;
898
889
}
899
890
900
891
bool _isDragging = false ;
901
892
902
- void handleDragStart (TapDragStartDetails details) {
893
+ void handleDragStart (DragStartDetails details) {
903
894
_isDragging = true ;
904
895
905
896
final newSelection = selectPositionAt (
@@ -912,7 +903,7 @@ class RenderEditor extends RenderEditableContainerBox
912
903
_extendSelectionOrigin = newSelection;
913
904
}
914
905
915
- void handleDragEnd (TapDragEndDetails details) {
906
+ void handleDragEnd (DragEndDetails details) {
916
907
_isDragging = false ;
917
908
onSelectionCompleted ();
918
909
}
0 commit comments