chore(build): fix range

This commit is contained in:
Brandy Carney
2019-03-06 12:15:47 -05:00
parent dfb0c7f3c1
commit 3a19329dbd

View File

@ -488,8 +488,7 @@ interface RangeKnob {
handleKeyboard: (name: KnobName, isIncrease: boolean) => void; handleKeyboard: (name: KnobName, isIncrease: boolean) => void;
} }
function renderKnob({ knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) { function renderKnob(isRTL: boolean, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) {
const isRTL = document.dir === 'rtl';
const start = isRTL ? 'right' : 'left'; const start = isRTL ? 'right' : 'left';
const knobStyle = () => { const knobStyle = () => {
@ -552,4 +551,4 @@ function ratioToValue(
function valueToRatio(value: number, min: number, max: number): number { function valueToRatio(value: number, min: number, max: number): number {
return clamp(0, (value - min) / (max - min), 1); return clamp(0, (value - min) / (max - min), 1);
} }