Apply SmoothPointerDataDispatcher to Fuchsia (flutter/engine#14514)

Fixes https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=35050
and https://github.com/flutter/flutter/issues/38811
This commit is contained in:
liyuqian 2019-12-16 17:14:19 -08:00 committed by GitHub
parent 54f9ebe7a9
commit 8dcf0235e5
2 changed files with 9 additions and 0 deletions

View File

@ -766,4 +766,10 @@ void PlatformView::HandleFlutterPlatformViewsChannelPlatformMessage(
}
}
flutter::PointerDataDispatcherMaker PlatformView::GetDispatcherMaker() {
return [](flutter::DefaultPointerDataDispatcher::Delegate& delegate) {
return std::make_unique<flutter::SmoothPointerDataDispatcher>(delegate);
};
}
} // namespace flutter_runner

View File

@ -70,6 +70,9 @@ class PlatformView final : public flutter::PlatformView,
// |flutter_runner::AccessibilityBridge::Delegate|
void SetSemanticsEnabled(bool enabled) override;
// |PlatformView|
flutter::PointerDataDispatcherMaker GetDispatcherMaker() override;
private:
const std::string debug_label_;
// TODO(MI4-2490): remove once ViewRefControl is passed to Scenic and kept