diff --git a/src/visual/Form.js b/src/visual/Form.js index 3c7ee48..c9cfb21 100644 --- a/src/visual/Form.js +++ b/src/visual/Form.js @@ -851,7 +851,7 @@ export class Form extends util.mix(VisualStim).with(ColorMixin) flip = true; } - let style, labels, ticks, granularity; + let style, labels, ticks, granularity = 1; if (item.type === Form.Types.CHOICE) { style = [Slider.Style.RATING, Slider.Style.RADIO]; @@ -870,10 +870,11 @@ export class Form extends util.mix(VisualStim).with(ColorMixin) style = [Slider.Style.RATING]; labels = item.tickLabels; ticks = item.ticks; + granularity = 1; } responseStim = new Slider( - Object.assign(sliderOption, { + Object.assign({}, sliderOption, { granularity, size: sliderSize, style,