Skip to content

Commit bcbcc71

Browse files
committed
Trigger scroll when ignoring event
This is a less aggressive fix that doesn't regress tests
1 parent da39129 commit bcbcc71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser/Viewport.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export class Viewport extends Disposable implements IViewport {
151151
// Ignore the event if it was flagged to ignore (when the source of the event is from Viewport)
152152
if (this._ignoreNextScrollEvent) {
153153
this._ignoreNextScrollEvent = false;
154+
// Still trigger the scroll so lines get refreshed
155+
this._scrollLines(0);
154156
return;
155157
}
156158

0 commit comments

Comments
 (0)