NG-ZORRO/ng-zorro-antd

nz-slider cannot jump to the exact value by clicking on the nzMarks labels

Opened this issue · 0 comments

Reproduction link

https://codesandbox.io/s/1ybqg3

Steps to reproduce

  1. Create nz-slider with nzMarks. Give it a large value range. Don't set nzSteps.
  2. Click on the mark labels. e.g. click on the label '26'.
  3. If you click the head of that label, the value will jump to 25 instead of 26.

What is expected?

Jump to the exact value on the label.

What is actually happening?

If you click on the head/end of that label, the pointer will jump to the value before or after.

Environment Info
ng-zorro-antd 17.4.0
Browser firefox