Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 42de22d

Browse files
committed
re-enable pointer events inside platform views
1 parent 217d39e commit 42de22d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/web_ui/lib/src/engine/canvaskit/embedded_views.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ class HtmlViewEmbedder {
223223
if (indexInFlutterView > -1) {
224224
skiaSceneHost!.children.insert(indexInFlutterView, head);
225225
}
226+
227+
// <flt-scene-host> disables pointer events. Reenable them here because the
228+
// underlying platform view would want to handle the pointer events.
229+
head.style.pointerEvents = 'auto';
226230
return head;
227231
}
228232

0 commit comments

Comments
 (0)