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 * @private
*/ */
setScrolling(timeStamp: number) { setScrolling() {
this._scrollTime = timeStamp + ACTIVE_SCROLLING_TIME; 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 // subscribe to every scroll move
this._scroll.scroll.subscribe(ev => { this._scroll.scroll.subscribe(ev => {
// remind the app that it's currently scrolling // 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 // emit to all of our other friends things be scrolling
this.ionScroll.emit(ev); this.ionScroll.emit(ev);