From ee23f451bc428431e9b29e26e5b00c7580fa3e78 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Wed, 16 Feb 2022 12:54:18 +0800 Subject: [PATCH] fix last row not visible when doing partial scroll https://github.com/fabriziobertoglio1987/react-native-notes/issues/6#issuecomment-1040937316 --- .../java/com/facebook/react/views/scroll/ReactScrollView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java index cb0a5e2f9cb8ed..bc7ea3d7aa18f7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java @@ -416,7 +416,7 @@ private int getScrollDelta(View descendent) { private boolean isPartiallyScrolledInView(View descendent) { int scrollDelta = getScrollDelta(descendent); descendent.getDrawingRect(mTempRect); - return scrollDelta != 0 && Math.abs(scrollDelta) < mTempRect.height(); + return Math.abs(scrollDelta) < mTempRect.height(); } private void scrollToChild(View child) {