Skip to content

Commit a237253

Browse files
committed
fix(scroll): ensure listeners have been added before removing
1 parent eba2862 commit a237253

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util/scroll-view.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,9 @@ export class ScrollView {
487487
this.scrollStart.unsubscribe();
488488
this.scroll.unsubscribe();
489489
this.scrollEnd.unsubscribe();
490-
491490
this.stop();
492-
this._lsn();
493491
this._endTmr && this._endTmr();
492+
this._lsn && this._lsn();
494493
this._el = this._dom = null;
495494
}
496495

0 commit comments

Comments
 (0)