disabling next arror when wrapper reaches max scroll