mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(app): setScrolling()
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user