fix(app): setScrolling()

This commit is contained in:
Manu Mtz.-Almeida
2016-12-07 23:25:40 +01:00
parent 0888decc01
commit 04d9f5abc3
2 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ export class App {
/**
* @private
*/
setScrolling(timeStamp: number) {
this._scrollTime = timeStamp + ACTIVE_SCROLLING_TIME;
setScrolling() {
this._scrollTime = Date.now() + ACTIVE_SCROLLING_TIME;
}
/**

View File

@ -341,7 +341,7 @@ export class Content extends Ion implements OnDestroy, OnInit {
// subscribe to every scroll move
this._scroll.scroll.subscribe(ev => {
// remind the app that it's currently scrolling
this._app.setScrolling(ev.timeStamp);
this._app.setScrolling();
// emit to all of our other friends things be scrolling
this.ionScroll.emit(ev);