Skip to content

Commit 04d9f5a

Browse files
committed
fix(app): setScrolling()
1 parent 0888dec commit 04d9f5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/app/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ export class App {
162162
/**
163163
* @private
164164
*/
165-
setScrolling(timeStamp: number) {
166-
this._scrollTime = timeStamp + ACTIVE_SCROLLING_TIME;
165+
setScrolling() {
166+
this._scrollTime = Date.now() + ACTIVE_SCROLLING_TIME;
167167
}
168168

169169
/**

src/components/content/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class Content extends Ion implements OnDestroy, OnInit {
341341
// subscribe to every scroll move
342342
this._scroll.scroll.subscribe(ev => {
343343
// remind the app that it's currently scrolling
344-
this._app.setScrolling(ev.timeStamp);
344+
this._app.setScrolling();
345345

346346
// emit to all of our other friends things be scrolling
347347
this.ionScroll.emit(ev);

0 commit comments

Comments
 (0)