_getMutableOptions -> _getChangeOptions
This commit is contained in:
@@ -55,13 +55,13 @@ export class Viewport extends Disposable {
|
|||||||
horizontal: ScrollbarVisibility.Hidden,
|
horizontal: ScrollbarVisibility.Hidden,
|
||||||
useShadows: false,
|
useShadows: false,
|
||||||
mouseWheelSmoothScroll: true,
|
mouseWheelSmoothScroll: true,
|
||||||
...this._getMutableOptions()
|
...this._getChangeOptions()
|
||||||
}, scrollable));
|
}, scrollable));
|
||||||
this.register(this._optionsService.onMultipleOptionChange([
|
this.register(this._optionsService.onMultipleOptionChange([
|
||||||
'scrollSensitivity',
|
'scrollSensitivity',
|
||||||
'fastScrollSensitivity',
|
'fastScrollSensitivity',
|
||||||
'overviewRulerWidth'
|
'overviewRulerWidth'
|
||||||
], () => this._scrollableElement.updateOptions(this._getMutableOptions())));
|
], () => this._scrollableElement.updateOptions(this._getChangeOptions())));
|
||||||
|
|
||||||
this._scrollableElement.setScrollDimensions({ height: 0, scrollHeight: 0 });
|
this._scrollableElement.setScrollDimensions({ height: 0, scrollHeight: 0 });
|
||||||
this.register(runAndSubscribe(themeService.onChangeColors, () => {
|
this.register(runAndSubscribe(themeService.onChangeColors, () => {
|
||||||
@@ -111,7 +111,7 @@ export class Viewport extends Disposable {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _getMutableOptions(): ScrollableElementChangeOptions {
|
private _getChangeOptions(): ScrollableElementChangeOptions {
|
||||||
return {
|
return {
|
||||||
mouseWheelScrollSensitivity: this._optionsService.rawOptions.scrollSensitivity,
|
mouseWheelScrollSensitivity: this._optionsService.rawOptions.scrollSensitivity,
|
||||||
fastScrollSensitivity: this._optionsService.rawOptions.fastScrollSensitivity,
|
fastScrollSensitivity: this._optionsService.rawOptions.fastScrollSensitivity,
|
||||||
|
|||||||
Reference in New Issue
Block a user