Infinite Scroll distance

Checked the source code with below line, so if the data-infinite-distance is greater than screen height will be using screen height instead, any specific reason for that or should be removed?

if (distance > height) { distance = height; }

Probably it is not required by any reason to have it larger than page height?