@trava/react-native-drax
Advanced tools
Comparing version 0.9.7 to 0.9.8
@@ -38,3 +38,3 @@ "use strict"; | ||
const DraxListUnforwarded = (props, forwardedRef) => { | ||
const { data, style, flatListStyle, itemStyles, renderItemContent, renderItemHoverContent, onItemDragStart, onItemDragPositionChange, onItemDragEnd, onItemReorder, viewPropsExtractor, id: idProp, reorderable: reorderableProp, onScroll: onScrollProp, itemsDraggable = true, lockItemDragsToMainAxis = false, longPressDelay = params_1.defaultListItemLongPressDelay, onChangeList, ...flatListProps } = props; | ||
const { data, style, flatListStyle, itemStyles, renderItemContent, renderItemHoverContent, onItemDragStart, onItemDragPositionChange, onItemDragEnd, onItemReorder, viewPropsExtractor, id: idProp, reorderable: reorderableProp, onScroll: onScrollProp, itemsDraggable = true, lockItemDragsToMainAxis = false, longPressDelay = params_1.defaultListItemLongPressDelay, onChangeList, autoScrollIntervalLength = params_1.defaultAutoScrollIntervalLength, autoScrollJumpRatio = params_1.defaultAutoScrollJumpRatio, ...flatListProps } = props; | ||
// Copy the value of the horizontal property for internal use. | ||
@@ -551,3 +551,3 @@ const horizontal = flatListProps.horizontal ?? false; | ||
} | ||
const jumpLength = containerLength * 0.2; | ||
const jumpLength = containerLength * autoScrollJumpRatio; | ||
let offset; | ||
@@ -576,3 +576,3 @@ if (scrollStateRef.current === types_1.AutoScrollDirection.Forward) { | ||
doScroll(); | ||
scrollIntervalRef.current = setInterval(doScroll, 250); | ||
scrollIntervalRef.current = setInterval(doScroll, autoScrollIntervalLength); | ||
}, [doScroll]); | ||
@@ -579,0 +579,0 @@ // Stop the auto-scrolling interval. |
{ | ||
"name": "@trava/react-native-drax", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "A drag-and-drop system for React Native", | ||
@@ -5,0 +5,0 @@ "repository": { |
3650219