Consistently return the correct direction. Fixes #339

The `direction` is now always correct (up or down), no matter if on desktop,
mobile or when using setScrollTop or animateTo.

Also `lastTop` and `curTop` now are always integers (could return
floats on mobile).
0.6.14