scrollOffItemCenter return the offset when the item is placed at the center of the screen.
double scrollOffItemCenter(int index) { return (index + 1) * scrollPerItem - inside / 2; }