mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
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:
parent
20d1c48f97
commit
124dc79bc3
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue