mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:38:23 +00:00
Fixes #46702
This commit is contained in:
parent
3ff0f35fb9
commit
062f3f732d
1 changed files with 5 additions and 1 deletions
|
@ -1652,7 +1652,11 @@ export class EditorOptionsValidator {
|
|||
renderLineHighlight = _stringSet<'none' | 'gutter' | 'line' | 'all'>(opts.renderLineHighlight, defaults.renderLineHighlight, ['none', 'gutter', 'line', 'all']);
|
||||
}
|
||||
|
||||
const mouseWheelScrollSensitivity = _float(opts.mouseWheelScrollSensitivity, defaults.scrollbar.mouseWheelScrollSensitivity);
|
||||
let mouseWheelScrollSensitivity = _float(opts.mouseWheelScrollSensitivity, defaults.scrollbar.mouseWheelScrollSensitivity);
|
||||
if (mouseWheelScrollSensitivity === 0) {
|
||||
// Disallow 0, as it would prevent/block scrolling
|
||||
mouseWheelScrollSensitivity = 1;
|
||||
}
|
||||
const scrollbar = this._sanitizeScrollbarOpts(opts.scrollbar, defaults.scrollbar, mouseWheelScrollSensitivity);
|
||||
const minimap = this._sanitizeMinimapOpts(opts.minimap, defaults.minimap);
|
||||
|
||||
|
|
Loading…
Reference in a new issue