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
(cherry picked from commit 8c090d3f23)
This commit is contained in:
Dhruv Srivastava
2019-05-24 15:37:46 +02:00
committed by David Pursehouse
parent 03379e873c
commit 99648a2154

View File

@@ -122,7 +122,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.