Original report by Felix (Bitbucket: quantumbyte, GitHub: quantumbyte).
Hi,
this is the Code I used:
#!java
private RangeSlider createRangeSlider(int min, int max, int lower, int higher)
{
RangeSlider slider = new RangeSlider(min, max, lower, higher);
slider.setShowTickMarks(true);
slider.setShowTickLabels(true);
slider.setMajorTickUnit(5);
slider.setMinorTickCount(5); //Use 1 here to make the error more obvious
slider.setSnapToTicks(true);
return slider;
}
I wanted the Thumbs to snap to the ticks, however this does not work if I drag the whole range-area. This is really annoying, because I want to allow int-values only.
该提问来源于开源项目:controlsfx/controlsfx