mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Don't flag user scrolling if no scrolling happens
This commit is contained in:
@@ -238,6 +238,7 @@ export class SelectionManager extends EventEmitter {
|
||||
* @param event The mouseup event.
|
||||
*/
|
||||
private _onMouseUp(event: MouseEvent) {
|
||||
this._dragScrollAmount = 0;
|
||||
if (!this._selectionStart) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1178,6 +1178,9 @@ Terminal.prototype.scroll = function() {
|
||||
*/
|
||||
Terminal.prototype.scrollDisp = function(disp, suppressScrollEvent) {
|
||||
if (disp < 0) {
|
||||
if (this.ydisp === 0) {
|
||||
return;
|
||||
}
|
||||
this.userScrolling = true;
|
||||
} else if (disp + this.ydisp >= this.ybase) {
|
||||
this.userScrolling = false;
|
||||
|
||||
Reference in New Issue
Block a user