Skip to content

Commit

Permalink
Fix hit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Sep 4, 2024
1 parent ffc27a4 commit ca6ebe3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions forui/lib/src/widgets/accordion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ class _ExpandableBox extends RenderBox with RenderObjectWithChildMixin<RenderBox
}
}

@override
bool hitTest(BoxHitTestResult result, {required Offset position}) {
if (size.contains(position) && child!.hitTest(result, position: position)) {
result.add(BoxHitTestEntry(this, position));
return true;
}

return false;
}

double get percentage => _percentage;

set percentage(double value) {
Expand Down

0 comments on commit ca6ebe3

Please sign in to comment.