[IPOL discuss] A comment on sliders on demos
Miguel Colom
colom at cmla.ens-cachan.fr
Sun Mar 30 17:03:02 CEST 2014
Quoting Loic Simon <loic.simon at ensicaen.fr>:
> Hi all,
>
> Maybe, instead of changing the max of the slider programatically, one could
> instead set a higher priority on the textbox over the slider. That would
> mean that if the user chooses the slider, then the behaviour would remain
> unchanged. But if the user chooses to enter a value directly in the text
> box, then this value would not be overridden by the sliders settings. I
> don't know if that is hard to set up but at least I don't find it confusing.
Hi Loïc,
the main control is the slider and the textbox is only for
convenience. Therefore, all restrictions come from the slider and also
the final value sent to the algorithm.
Then, if we want to give priority to the textbox we have to
programmatically change the slider parameters. If we need that the
value in the textbox is taken into account even if outside the range
of the slider, then we have to change the min and max of the slider
when we detect that its value is out of range.
This way, if the slider goes, say, from 10 to 50 and the user writes
80 in the textbox, the slider would adapt itself to range from 10 to 80.
This should not be very difficult to do, but my concern is again that
if we allow this, then we can end up with experiments that don't
really make sense.
I don't know if this is something that we really need. If we decide
that we should allow users to enter any value the want, we can change
the slider code for all demos.
Best,
Miguel
More information about the discuss
mailing list