diff --git a/.rive_head b/.rive_head index 30ff34f..f94d721 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -bc92b879fb0940d5ade2711f13a77fb972fa09a0 +bc003d5d8754ca4bf2c861edb12fc08405aa1389 diff --git a/CHANGELOG.md b/CHANGELOG.md index 420447b..452670a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Upcoming + +### Fixes + +- Fixed an issue where `RivePanel` intercepted all pointer events. Hit testing now respects each `RiveWidget`'s configured `hitTestBehavior`. + ## 0.14.3 - Bumps to `rive_native: 0.1.3`. Updates the Rive C++ runtime and renderer for the latest features, bug fixes, and performance improvements. diff --git a/lib/src/widgets/rive_panel.dart b/lib/src/widgets/rive_panel.dart index 267863f..38a66c6 100644 --- a/lib/src/widgets/rive_panel.dart +++ b/lib/src/widgets/rive_panel.dart @@ -136,7 +136,13 @@ class _RivePanelState extends State { Widget build(BuildContext context) { return Stack( children: [ - Positioned.fill(child: _renderTexture!.widget(key: _panelKey)), + Positioned.fill( + // IgnorePointer is used to prevent the RivePanel from intercepting pointer events. + // Pointer events are handled by the individual RiveWidgets. + child: IgnorePointer( + child: _renderTexture!.widget(key: _panelKey), + ), + ), RiveSharedTexture( panelKey: _panelKey, backgroundColor: widget.backgroundColor,