Merge pull request #2514 from Tyriar/scroll
Apply scrollSensitivity on fast scroll too
This commit is contained in:
@@ -237,7 +237,7 @@ export class Viewport extends Disposable implements IViewport {
|
|||||||
if ((modifier === 'alt' && ev.altKey) ||
|
if ((modifier === 'alt' && ev.altKey) ||
|
||||||
(modifier === 'ctrl' && ev.ctrlKey) ||
|
(modifier === 'ctrl' && ev.ctrlKey) ||
|
||||||
(modifier === 'shift' && ev.shiftKey)) {
|
(modifier === 'shift' && ev.shiftKey)) {
|
||||||
return amount * this._optionsService.options.fastScrollSensitivity;
|
return amount * this._optionsService.options.fastScrollSensitivity * this._optionsService.options.scrollSensitivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
return amount * this._optionsService.options.scrollSensitivity;
|
return amount * this._optionsService.options.scrollSensitivity;
|
||||||
|
|||||||
Reference in New Issue
Block a user