Skip to content

fix(ios): correct swipe-to-seek direction in RTL - #851

Open
kashmiry wants to merge 1 commit into
callstack:release/version-update-5.2.2from
kashmiry:fix/rtl-swipe-to-seek
Open

kashmiry wants to merge 1 commit into
callstack:release/version-update-5.2.2from
kashmiry:fix/rtl-swipe-to-seek

Conversation

@kashmiry

Copy link
Copy Markdown
Contributor

Summary

#803 made the iOS slider honor the app’s layout direction. #750 added swipe-to-seek in v5.2.2, but its new handler always measured touch position from the left. In RTL, dragging on the track moved the value in the opposite direction from tapping.
This PR makes swipe-to-seek use the same direction check as tap-to-seek.

Test Plan

  • Manually verified swipe-to-seek in iOS device with Arabic (RTL).
  • Verified swipe value mapping on an iOS simulator in LTR and RTL with inverted off and on.

Testing note: I’ve noticed that some RTL issues in iOS only appear when the app project includes an RTL language localization in xcode like Arabic, such as InfoPlist.strings, alongside English. Testing with forceRTL alone on a project that does not have an RTL localization can miss them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant