Skip to content

Commit 38bee71

Browse files
committed
More clear comments
1 parent 1a6a807 commit 38bee71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/services/CoreMouseService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class CoreMouseService extends Disposable implements ICoreMouseService {
271271
private _applyScrollModifier(amount: number, ev: WheelEvent): number {
272272
const modifier = this._optionsService.rawOptions.fastScrollModifier; // QUESTION: This is always alt. Seems deprecated via: https://github.com/xtermjs/xterm.js/blob/5.5.0/src/browser/Viewport.ts
273273
// Problem is that modifier always seem 'alt' even when ev.ctrlKey is true, for example.
274-
// Maybe this doesnt matter because all of alt, ctrl, shift does same operation?
274+
// May need to tweak conditional to: if any of `ev.altKey || ev.ctrlKey || ev.shiftKey` is true
275275

276276
// Multiply the scroll speed when the modifier key is pressed
277277
if ((modifier === 'alt' && ev.altKey) ||

0 commit comments

Comments
 (0)