fix Can select text by dragging with a mouse due to dragStart only being fired on the first PointerMoveEvent, the previous pan gesture recognizer would fire both dragStart and dragUpdate

This commit is contained in:
Renzo Olivares 2022-08-25 15:16:34 -07:00
parent 20d1c48f97
commit 124dc79bc3

View file

@ -1980,10 +1980,13 @@ void main() {
await skipPastScrollingAnimation(tester);
final Offset ePos = textOffsetToPosition(tester, testValue.indexOf('e'));
final Offset fPos = textOffsetToPosition(tester, testValue.indexOf('f'));
final Offset gPos = textOffsetToPosition(tester, testValue.indexOf('g'));
final TestGesture gesture = await tester.startGesture(ePos, kind: PointerDeviceKind.mouse);
await tester.pump();
await gesture.moveTo(fPos);
await tester.pump();
await gesture.moveTo(gPos);
await tester.pump();
await gesture.up();