@chayns-components/swipeable-wrapper
Version:
A set of beautiful React components for developing your own applications with chayns.
7 lines • 311 B
JavaScript
import { SWIPEABLE_ACTION_WIDTH } from '../components/swipeable-wrapper/swipeable-action/SwipeableAction';
export const calcThreshold = ({
actionCount,
direction,
width
}) => Math.max(width / 2, SWIPEABLE_ACTION_WIDTH * actionCount) * (direction === 'left' ? 1 : -1);
//# sourceMappingURL=threshold.js.map