Improved conditions for detecting horizontal ScrollView on iOS.
💡 Motivation and Context
If we compare height properties, then we may have a false positive case if ScrollView is not big enough and can not be actually scrolled because of its small size:
To fix the problem I decided to compare width property to properly detect horizontal ScrollView.
📜 Description
Improved conditions for detecting horizontal
ScrollView
on iOS.💡 Motivation and Context
If we compare
height
properties, then we may have a false positive case ifScrollView
is not big enough and can not be actually scrolled because of its small size:To fix the problem I decided to compare
width
property to properly detect horizontalScrollView
.Closes https://github.com/kirillzyusko/react-native-keyboard-controller/issues/453
📢 Changelog
iOS
width
property to detect horizontalScrollView
s;🤔 How Has This Been Tested?
Tested manually on iPhone 15 Pro (iOS 17.4).
📸 Screenshots (if appropriate):
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/fde50481-b481-47ab-b23e-7417740ebed8
📝 Checklist