Skip to content

Commit 65a0e03

Browse files
authored
Merge pull request #5437 from xtermjs/anthonykim1/preventPageScrollWhenMouseOff
Prevent entire page from scrolling when scrolling in alt buffer with mouse event off
2 parents 6c79a46 + 6ae020f commit 65a0e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/CoreBrowserTerminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
831831
self._coreBrowserService?.dpr
832832
);
833833
if (lines === 0) {
834-
return false;
834+
return this.cancel(ev, true);
835835
}
836836

837837
// Construct and send sequences

0 commit comments

Comments
 (0)