UNPKG

motion-plus-vue

Version:

Motion Plus Vue

14 lines (13 loc) 262 B
function a(e, t, r) { const o = Math.floor(e / r), l = o * r; let f = 0; for (let n = 0; n < t.length; n++) { const { end: d } = t[n]; if (f = n, d + l > e) break; } return f + o * t.length; } export { a as findCurrentIndexFromInset };