function calculateThresholds(docHeight, percentages) {
  return percentages.map((percent) => {
    if (percent === 100) {
      // 1px cushion to trigger 100% event in iOS
      return docHeight - 5
    }
    return docHeight * (percent / 100)
  })
}
/

    /* if we've fired off all percentages, then return