File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
slider/src/main/java/io/monstarlab/mosaic/slider Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public fun Slider(
99
99
thumb = thumb,
100
100
track = {
101
101
SliderTrack (
102
- progress = state.valueAsFraction ,
102
+ progress = state.offsetAsFraction ,
103
103
colors = colors,
104
104
disabledRange = state.disabledRangeAsFractions,
105
105
enabled = enabled,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public fun SliderLayout(
46
46
state.updateDimensions(sliderWidth.toFloat(), thumbPlaceable.width.toFloat())
47
47
48
48
val trackOffsetX = thumbPlaceable.width / 2
49
- val thumbOffsetX = ((trackPlaceable.width) * state.valueAsFraction ).roundToInt()
49
+ val thumbOffsetX = ((trackPlaceable.width) * state.offsetAsFraction ).roundToInt()
50
50
val trackOffsetY = (sliderHeight - trackPlaceable.height) / 2
51
51
val thumbOffsetY = (sliderHeight - thumbPlaceable.height) / 2
52
52
You can’t perform that action at this time.
0 commit comments