Skip to content

Commit

Permalink
Merge pull request #83 from crunchloop/master
Browse files Browse the repository at this point in the history
Fix the tap offset when overlaps is > 0
  • Loading branch information
letsar authored Dec 13, 2022
2 parents 8d571f5 + 28b0ac6 commit efc38a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/rendering/sliver_sticky_header.dart
Original file line number Diff line number Diff line change
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 efc38a1

Please sign in to comment.