jquery ui slider step

jquery ui slider step

JQuery UI version 1.8.6
--------------------------------

I'm trying to understand step option.

I thought I could configure something like min: 1, max: 7, step: 2 to get a slider with allowed values 1, 3, 5, 7.

From the documentation I understood step requirement was (max-min) MOD step == 0 (no remainder on division) and those values where correct.

But in that example what I get is a slider with a gui with min 1 and max 7 that starts with value 1, but when you slide next value is 2, next 4, and you can go even to 8 (a value that is out of range). When sliding left a can go again 6, 4, 2 and I cant go lower.

For me makes no sense, if I wanted a slider 2, 4, 6, 8 I would confire it as min:2, max:8, step:2. I dont know why it is not correct to try to configure a slider as the one I try to configure.

All indicates that step requirement right now is (min MOD step == 0) and (max MOD step == 0) or it want work as expected.

Anyone know if this is a bug or it is supposed to work that way?