From 679c5b38f7ca6011ff8778f41feca4ba7672cf56 Mon Sep 17 00:00:00 2001 From: Alex Danoff Date: Fri, 28 Apr 2023 09:28:55 -0700 Subject: [PATCH] W3CPointerEvents: fix pointercancel test scrollview on Android (#36959) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36959 Changelog: [Internal] - W3CPointerEvents: fix pointercancel test scrollview on Android On Android the contents of the scrollview were not large enough to allow for scrolling (i.e. they didn't overflow the scroll container). This change sets the height of the content and container explicitly to ensure that the view can be scrolled. Reviewed By: vincentriemer Differential Revision: D45064333 fbshipit-source-id: 6aa264d569639bb7d906a3afd887985caa563070 --- .../PointerEventPointerCancelTouch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js index 09dc77c1cf1..8059b8f9d65 100644 --- a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js +++ b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js @@ -157,10 +157,11 @@ function PointerEventPointerCancelTouchTestCase( } const styles = StyleSheet.create({ - scrollContainer: {width: '100%', height: '100%'}, + scrollContainer: {width: '100%', height: 100}, target: { backgroundColor: 'black', padding: 32, + height: 200, }, });