ui-kit-ck-consultant 0.5.277 → 0.5.278

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4288,7 +4288,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4288
4288
  _this = _React$Component.call(this, props) || this;
4289
4289
 
4290
4290
  _this.eventMouseUp = function () {
4291
- if (_this.state.isDisplay) {
4291
+ if (_this.state.isActive) {
4292
4292
  _this.setState({
4293
4293
  isActive: false
4294
4294
  });
@@ -4305,7 +4305,13 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4305
4305
  var width = currentTargetRect.width;
4306
4306
  var positionX = e.pageX - currentTargetRect.left;
4307
4307
  var step = _this.props.step ? _this.props.step : 1;
4308
- var position = positionX * 100 / width - positionX * 100 / width % step;
4308
+ var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4309
+
4310
+ if (position > 100) {
4311
+ position = 100;
4312
+ } else if (position < 0) {
4313
+ position = 0;
4314
+ }
4309
4315
 
4310
4316
  _this.setState({
4311
4317
  position: position