Skip to content

Commit dc59758

Browse files
authored
Apply SmoothPointerDataDispatcher to Fuchsia (#14514)
Fixes https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=35050 and #38811
1 parent 5f9e558 commit dc59758

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

shell/platform/fuchsia/flutter/platform_view.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,4 +766,10 @@ void PlatformView::HandleFlutterPlatformViewsChannelPlatformMessage(
766766
}
767767
}
768768

769+
flutter::PointerDataDispatcherMaker PlatformView::GetDispatcherMaker() {
770+
return [](flutter::DefaultPointerDataDispatcher::Delegate& delegate) {
771+
return std::make_unique<flutter::SmoothPointerDataDispatcher>(delegate);
772+
};
773+
}
774+
769775
} // namespace flutter_runner

shell/platform/fuchsia/flutter/platform_view.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ class PlatformView final : public flutter::PlatformView,
7070
// |flutter_runner::AccessibilityBridge::Delegate|
7171
void SetSemanticsEnabled(bool enabled) override;
7272

73+
// |PlatformView|
74+
flutter::PointerDataDispatcherMaker GetDispatcherMaker() override;
75+
7376
private:
7477
const std::string debug_label_;
7578
// TODO(MI4-2490): remove once ViewRefControl is passed to Scenic and kept

0 commit comments

Comments
 (0)