I am trying to use the slider with 9 marks. I have set the width of the container as 100% but the last mark always come a little left side instead of at the last.
The marks array is like this:
const marks = [ 0, 12.5, 25, 37.5, 50, 62.5, 75, 87.5, 100 ];
If I increase or decrease the width the value of left changes accordingly and the last mark always stays a little earlier.
Please help.
I am trying to use the slider with 9 marks. I have set the width of the container as 100% but the last mark always come a little left side instead of at the last. The marks array is like this:
const marks = [ 0, 12.5, 25, 37.5, 50, 62.5, 75, 87.5, 100 ];
If I increase or decrease the width the value of left changes accordingly and the last mark always stays a little earlier. Please help.