Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: better horizontal UIScrollView detection #454

Merged
merged 1 commit into from
May 29, 2024

Conversation

kirillzyusko
Copy link
Owner

@kirillzyusko kirillzyusko commented May 28, 2024

📜 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 if ScrollView is not big enough and can not be actually scrolled because of its small size:

image

To fix the problem I decided to compare width property to properly detect horizontal ScrollView.

Closes #453

📢 Changelog

iOS

  • compare width property to detect horizontal ScrollViews;

🤔 How Has This Been Tested?

Tested manually on iPhone 15 Pro (iOS 17.4).

📸 Screenshots (if appropriate):

334535791-81c12237-82bd-4995-b657-424ea6a98829.mp4

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko added 🐛 bug Something isn't working 🍎 iOS iOS specific labels May 28, 2024
@kirillzyusko kirillzyusko self-assigned this May 28, 2024
@kirillzyusko kirillzyusko marked this pull request as draft May 28, 2024 18:35
Copy link
Contributor

📊 Package size report

Current size Target Size Difference
136086 bytes 136088 bytes -2 bytes 📉

@kirillzyusko kirillzyusko marked this pull request as ready for review May 29, 2024 08:40
@kirillzyusko kirillzyusko merged commit c8ff1cf into main May 29, 2024
12 checks passed
@kirillzyusko kirillzyusko deleted the fix/453-better-horizontal-scroll-view-detection branch May 29, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🍎 iOS iOS specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyboardAwareScrollView doesn't work as expected on IOS
1 participant