mirror of
https://github.com/encounter/engine.git
synced 2026-07-10 03:18:43 -07:00
Apply SmoothPointerDataDispatcher to Fuchsia (#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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user