marcocesarato / react-native-input-spinner

An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
https://marcocesarato.github.io/react-native-input-spinner/
GNU General Public License v3.0
419 stars 34 forks source link

Input value is increasing / decreasing when increase or decrease button is touched un intentionally during scrolling #95

Closed heart2friend closed 1 year ago

heart2friend commented 1 year ago

I have added this component in FlatList. When try to scroll the list and if by mistake touches to increase or decrease button it increases or decreases value. I have button as well in FlatList but it doesn't fire onPress event even though I touch it during scroll.

ivan288 commented 1 year ago

Same problem for me

heart2friend commented 1 year ago

@marcocesarato I have exposed two properties delayPressIn and delayPressOut from InputSpinner component. We can use delayPressIn property to avoid auto increment / decrement on scroll. I have raised PR for the same. Could you have look into it and make it available in upcoming release.

image