fix smoothness (#66611)

This commit is contained in:
Ming Lyu (CareF) 2020-09-29 20:27:03 -04:00 committed by GitHub
parent 2d26bafec2
commit 07e56d4893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,16 @@ import 'package:e2e/e2e.dart';
import 'package:complex_layout/main.dart' as app; import 'package:complex_layout/main.dart' as app;
class PointerDataTestBinding extends E2EWidgetsFlutterBinding { class PointerDataTestBinding extends E2EWidgetsFlutterBinding {
// PointerData injection would usually be considered device input and therefore
// blocked by [TestWidgetsFlutterBinding]. Override this behavior
// to help events go into widget tree.
@override
void handlePointerEvent(
PointerEvent event, {
TestBindingEventSource source = TestBindingEventSource.device,
}) {
super.handlePointerEvent(event, source: TestBindingEventSource.test);
}
} }
/// A union of [ui.PointerDataPacket] and the time it should be sent. /// A union of [ui.PointerDataPacket] and the time it should be sent.