marekrozmus / react-swipeable-list

Swipeable list component for React supporting several behaviours (e.g. iOS)
https://marekrozmus.github.io/react-swipeable-list/
MIT License
114 stars 20 forks source link

Max percentage swipable #43

Closed lucaskab closed 1 year ago

lucaskab commented 1 year ago

Is your feature request related to a problem? Please describe. I really like the library but I'm missing the functionality to be able to set a max percentage that the list item can be swipable

Describe the solution you'd like Set a prop to the item for example 50% and then the item will be swipable only for 50% of it's width, and not the 100%

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

marekrozmus commented 1 year ago

@all-contributors please add @lucaskab for ideas

allcontributors[bot] commented 1 year ago

@marekrozmus

I've put up a pull request to add @lucaskab! :tada:

marekrozmus commented 1 year ago

@lucaskab the prop is added in version 1.9.0. Please check :) Enjoy!

lucaskab commented 1 year ago

@marekrozmus It's perfect!! Thank you very much, your library is amazing!!