Skip to content

Commit 4bd5207

Browse files
committed
fix: Secondary click event hit area (f7e12a6) (#688)
1 parent 87c34bc commit 4bd5207

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/src/indicator/footer/footer_locator.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class _FooterLocatorRenderSliver extends RenderSliverSingleBoxAdapter {
210210
// No cache extent.
211211
cacheExtent: math.min(childExtent, paintExtent),
212212
maxPaintExtent: math.max(childExtent, paintExtent),
213-
hitTestExtent: paintedChildSize,
213+
hitTestExtent: math.max(childExtent, paintedChildSize),
214214
hasVisualOverflow: childExtent > constraints.remainingPaintExtent ||
215215
constraints.scrollOffset > 0,
216216
visible: true,

lib/src/indicator/header/header_locator.dart

-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ class _HeaderLocatorRenderSliver extends RenderSliverSingleBoxAdapter {
211211
// No cache extent.
212212
cacheExtent: math.min(childExtent, paintExtent),
213213
maxPaintExtent: math.max(childExtent, paintExtent),
214-
// fix: second Event failure
215214
hitTestExtent: math.max(childExtent, paintedChildSize),
216215
hasVisualOverflow: childExtent > constraints.remainingPaintExtent ||
217216
constraints.scrollOffset > 0,

0 commit comments

Comments
 (0)