Fix _nextStepHandle not being assigned a value when scrolling
When scrolling, _nextStepHandle is not being assigned to the async nextStep call. This does not allow cancel() function to cancel the promise when changing files resulting in incorrect text showing on the second file. Bug: Issue 9409 Change-Id: I6969fdabf3c472b5a17d6901ceb2e0b19fa99921
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
let currentBatch = 0;
|
||||
const nextStep = () => {
|
||||
if (this._isScrolling) {
|
||||
this.async(nextStep, 100);
|
||||
this._nextStepHandle = this.async(nextStep, 100);
|
||||
return;
|
||||
}
|
||||
// If we are done, resolve the promise.
|
||||
|
Reference in New Issue
Block a user