Skip to content

feat: Customizable reorder trigger origin #274

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

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

MatiPl01
Copy link
Owner

@MatiPl01 MatiPl01 commented Feb 19, 2025

Description

This PR adds a possibility to customize the reorder trigger origin (i.e. the location of the point that will trigger order change).

It now makes it possible to choose between the center and the touch location and replaces the previous default touch location by the center location which seems more intuitive.

Example recordings

You can see the location of the reorderTriggerOrigin after enabling the debug mode with the debug property.

touch (previous default) center (current default)
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-19.at.15.46.37.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-19.at.15.45.46.mp4

@MatiPl01 MatiPl01 self-assigned this Feb 19, 2025
Copy link

vercel bot commented Feb 19, 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) Feb 19, 2025 2:49pm

@MatiPl01 MatiPl01 merged commit 21a23ce into main Feb 19, 2025
6 checks passed
@MatiPl01 MatiPl01 deleted the feat/customizable-reorder-trigger-origin branch February 19, 2025 14:58
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant