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