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
This commit is contained in:
Alex Danoff
2023-04-28 09:28:55 -07:00
committed by Facebook GitHub Bot
parent daa12dc6d2
commit 679c5b38f7
@@ -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,
},
});