mirror of https://github.com/kivy/kivy.git
Merge branch 'slider_minmax'
This commit is contained in:
commit
0d4e5a2671
|
@ -112,7 +112,7 @@ class Slider(Widget):
|
|||
if step == 0:
|
||||
self.value = val
|
||||
else:
|
||||
self.value = min(round((val - vmin) / step) * step, self.max)
|
||||
self.value = min(round((val - vmin) / step) * step, self.max) + vmin
|
||||
value_normalized = AliasProperty(get_norm_value, set_norm_value,
|
||||
bind=('value', 'min', 'max', 'step'))
|
||||
'''Normalized value inside the :data:`range` (min/max) to 0-1 range::
|
||||
|
|
Loading…
Reference in New Issue