diff --git a/js/ui/slider.js b/js/ui/slider.js index 06a6843ba..4f34f5faf 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -48,11 +48,10 @@ export const Slider = GObject.registerClass({ let [width, height] = this.get_surface_size(); const rtl = this.get_text_direction() === Clutter.TextDirection.RTL; - const ceiledHandleRadius = Math.ceil(this._handleRadius); const handleY = height / 2; - let handleX = ceiledHandleRadius + - (width - 2 * ceiledHandleRadius) * this._value / this._maxValue; + let handleX = this._handleRadius + + (width - 2 * this._handleRadius) * this._value / this._maxValue; if (rtl) handleX = width - handleX;