ui-kit-ck-consultant 0.5.304 → 0.5.306

Sign up to get free protection for your applications and to get access to all the features.
@@ -4379,6 +4379,10 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4379
4379
  var step = _this.props.step ? _this.props.step : 1;
4380
4380
  var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4381
4381
 
4382
+ if (Math.round(positionX * 100 / width) % step > step / 2) {
4383
+ position += step;
4384
+ }
4385
+
4382
4386
  if (position > 100) {
4383
4387
  position = 100;
4384
4388
  } else if (position < 0) {
@@ -4520,7 +4524,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4520
4524
  fontWeight: 'bold',
4521
4525
  transition: '0.3s'
4522
4526
  }
4523
- }, parseInt(this.state.position), "%"), /*#__PURE__*/React.createElement("div", {
4527
+ }, this.state.position.toFixed(0), "%"), /*#__PURE__*/React.createElement("div", {
4524
4528
  className: "cursor-pointer",
4525
4529
  style: {
4526
4530
  position: 'absolute',