_getMutableOptions -> _getChangeOptions

This commit is contained in:
Daniel Imms
2024-07-10 12:47:47 -07:00
parent 1096b7f17f
commit 59a8f0cf8e
+3 -3
View File
@@ -55,13 +55,13 @@ export class Viewport extends Disposable {
horizontal: ScrollbarVisibility.Hidden,
useShadows: false,
mouseWheelSmoothScroll: true,
...this._getMutableOptions()
...this._getChangeOptions()
}, scrollable));
this.register(this._optionsService.onMultipleOptionChange([
'scrollSensitivity',
'fastScrollSensitivity',
'overviewRulerWidth'
], () => this._scrollableElement.updateOptions(this._getMutableOptions())));
], () => this._scrollableElement.updateOptions(this._getChangeOptions())));
this._scrollableElement.setScrollDimensions({ height: 0, scrollHeight: 0 });
this.register(runAndSubscribe(themeService.onChangeColors, () => {
@@ -111,7 +111,7 @@ export class Viewport extends Disposable {
});
}
private _getMutableOptions(): ScrollableElementChangeOptions {
private _getChangeOptions(): ScrollableElementChangeOptions {
return {
mouseWheelScrollSensitivity: this._optionsService.rawOptions.scrollSensitivity,
fastScrollSensitivity: this._optionsService.rawOptions.fastScrollSensitivity,