OnDemandList: Improve scroll-direction-detecting logic
OnDemandList: Improve scroll-direction-detecting logic

When tree is used, its top preload node will also have a rowIndex of 0, so
this check wrongly assumed that it is above, even if it isn't.

We still check rowIndex first because it's cheaper than checking offsetTop,
and this is still not a 100% accurate fix if the user scrolls very fast.

kfranqueiro/dgrid,dylans/dgrid,kfranqueiro/dgrid,maier49/dgrid,maier49/dgrid,maier49/dgrid,kfranqueiro/dgrid,dylans/dgrid,dylans/dgrid