[Bugzilla] [Bug 13548] Stéphane MOTTELET has commented the bug
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Fri Mar 30 14:11:08 CEST 2018
http://bugzilla.scilab.org/show_bug.cgi?id=13548
--------- Bug Summary -----------
Slider value gets fractional values despite of integer sliderstep
---------- Changed by ------------
stephane.mottelet at utc.fr
---------- What changed ----------
--- Comment #5 from Stéphane MOTTELET <stephane.mottelet at utc.fr> ---
Here is an excerpt of the Documentation (uicontrol_properties):
"SliderStep [1,2] real vector [small big], the small step represents the movement achieved when clicking on the slider trough or tapping on the
keyboard arrows (when the slider has focus); the big step is the amount moved when using Ctrl-keyboard-arrows. If the big step is omitted, it is
defaulted to 1/10 of the scale.
For spinner uicontrol, the first value of this property is used as fixed step."
Hence, the SliderStep property does not apply when the slider knob is dragged by the mouse pointer.
The fix should be focused to "when clicking on the slider trough", because the actual implementation does not exhibit this quantified behavior for
this particular interaction.
Constraining the value and the position of the Slider knob could be made at the Java level with the snapToTicks property of the underlying JSlider
widget:
https://docs.oracle.com/javase/7/docs/api/javax/swing/JSlider.html#snapToTicks
but I don't see why it should be compulsory, considering the above remark about the documented scope of the SliderStep property. To this purpose a
new corresponding "snapToTicks" property could be added for the Slider uicontrol at the Scilab level.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180330/466f7f60/attachment.htm>
More information about the Bugzilla
mailing list