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: Incorrect touch position measurement in modals #282

Merged
merged 3 commits into from
Feb 26, 2025

Conversation

MatiPl01
Copy link
Owner

@MatiPl01 MatiPl01 commented Feb 26, 2025

Description

This PR fixes incorrect touch position measurement within the sortable container caused by reanimated's measure function. It changes the calculation logic not to use the measure function (or to use it twice, for the custom handle and the container measurement - the invalid measurement offset will be gone after subtraction of 2 measure results).

Example recordings

Before After
Screen.Recording.2025-02-26.at.02.05.40.mp4
Screen.Recording.2025-02-26.at.01.57.25.mp4

@MatiPl01 MatiPl01 added enhancement New feature or request fix labels Feb 26, 2025
@MatiPl01 MatiPl01 self-assigned this Feb 26, 2025
Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
react-native-sortables-docs ⬜️ Ignored (Inspect) Visit Preview Feb 26, 2025 1:13am

@MatiPl01 MatiPl01 merged commit c67ee84 into main Feb 26, 2025
5 checks passed
@MatiPl01 MatiPl01 deleted the fix/incorrect-mesurements-in-modal branch February 26, 2025 01:39
MatiPl01 pushed a commit that referenced this pull request Feb 26, 2025
# [1.3.0](v1.2.1...v1.3.0) (2025-02-26)

### Bug Fixes

* Incorrect touch position measurement in modals ([#282](#282)) ([c67ee84](c67ee84))
* Quick fix for added item flickering ([#275](#275)) ([286cac2](286cac2))
* Some flex reordering issues ([#224](#224)) ([54ac234](54ac234))

### Features

* Add horizontal direction support to the Sortable Grid ([#277](#277)) ([8706955](8706955))
* Container overflow customization ([#278](#278)) ([fb6de0f](fb6de0f))
* Customizable reorder trigger origin ([#274](#274)) ([21a23ce](21a23ce))
* Implement better grid reordering ([#280](#280)) ([c7e5daf](c7e5daf))
@MatiPl01
Copy link
Owner Author

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Touch not tracked correctly in screens with presentation='modal' (iOS only)
1 participant