I have no idea what you were trying to achieve by setting maximum to 360 and then trying to do complex(ish) maths...? Maximum means the maximum scroll value, so surely it makes sense to set it to the maximum y position of the costume? This is done by taking the costume height and subtracting 360 (stopping the page from ever scrolling out of the view)