import config from "../../config";

const getDistanceThresholds = (container, axis) => {
  const startScrollingFrom = container[axis.size] * config.startFromPercentage;
  const maxScrollValueAt = container[axis.size] * config.maxScrollAtPercentage;
  return {
    startScrollingFrom,
    maxScrollValueAt
  };
};

// all in pixels

// converts the percentages in the config into actual pixel values
export default getDistanceThresholds;
