diff --git a/src/renderer/components/Footer.tsx b/src/renderer/components/Footer.tsx index b92cdd870..2b2422524 100644 --- a/src/renderer/components/Footer.tsx +++ b/src/renderer/components/Footer.tsx @@ -152,8 +152,9 @@ export class Footer extends React.Component { */ setScaleSliderValue(scale: number): void { if (this.scaleSliderRef.current) { - const value = Math.min(Math.max(0, scale), 1) * Footer.scaleSliderMax; - this.scaleSliderRef.current.value = value + ''; + if (scale < 0) { scale = 0; } + else if (scale > 1) { scale = 1; } + this.scaleSliderRef.current.value = (Math.min(Math.max(0, scale), 1) * Footer.scaleSliderMax).toFixed(1).toString(); updatePreferencesData({ browsePageGameScale: scale }); } }