Skip to content

Commit

Permalink
Fix the tap offset when overlaps is > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
darrillaga committed Oct 18, 2022
1 parent 8d571f5 commit 28b0ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/rendering/sliver_sticky_header.dart
Expand Up @@ -318,7 +318,7 @@ class RenderSliverStickyHeader extends RenderSliver with RenderSliverHelpers {
final didHitHeader = hitTestBoxChild(
BoxHitTestResult.wrap(SliverHitTestResult.wrap(result)),
header!,
mainAxisPosition: mainAxisPosition - childMainAxisPosition(header),
mainAxisPosition: mainAxisPosition - childMainAxisPosition(header) - headerPosition,
crossAxisPosition: crossAxisPosition,
);

Expand Down

0 comments on commit 28b0ac6

Please sign in to comment.