@progress/kendo-charts 1.26.0 → 1.26.1-dev.202210201157

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.
@@ -626,9 +626,9 @@ var Chart = (function (Class) {
626
626
  this._hoveredPoint = null;
627
627
  }
628
628
 
629
- if (this._plotArea.hovered) {
629
+ if (this._plotAreaHovered) {
630
+ this._plotAreaHovered = false;
630
631
  this.trigger(PLOT_AREA_LEAVE);
631
- this._plotArea.hovered = false;
632
632
  }
633
633
  };
634
634
 
@@ -1291,12 +1291,12 @@ var Chart = (function (Class) {
1291
1291
 
1292
1292
  if (plotArea.hover) {
1293
1293
  var overPlotArea = plotArea.backgroundContainsPoint(coords);
1294
- if (overPlotArea) {
1295
- plotArea.hovered = true;
1294
+ if (overPlotArea && !this._plotAreaHovered) {
1295
+ this._plotAreaHovered = true;
1296
1296
  this._plotArea.hover(this, e);
1297
- } else if (plotArea.hovered && !overPlotArea) {
1297
+ } else if (this._plotAreaHovered && !overPlotArea) {
1298
+ this._plotAreaHovered = false;
1298
1299
  this.trigger(PLOT_AREA_LEAVE);
1299
- plotArea.hovered = false;
1300
1300
  }
1301
1301
  }
1302
1302
 
@@ -35,4 +35,4 @@ ChartService.prototype.isPannable = function isPannable (axis) {
35
35
 
36
36
  Object.defineProperties( ChartService.prototype, prototypeAccessors );
37
37
 
38
- export default ChartService;
38
+ export default ChartService;
@@ -613,9 +613,9 @@ class Chart extends Class {
613
613
  this._hoveredPoint = null;
614
614
  }
615
615
 
616
- if (this._plotArea.hovered) {
616
+ if (this._plotAreaHovered) {
617
+ this._plotAreaHovered = false;
617
618
  this.trigger(PLOT_AREA_LEAVE);
618
- this._plotArea.hovered = false;
619
619
  }
620
620
  }
621
621
 
@@ -1258,12 +1258,12 @@ class Chart extends Class {
1258
1258
 
1259
1259
  if (plotArea.hover) {
1260
1260
  const overPlotArea = plotArea.backgroundContainsPoint(coords);
1261
- if (overPlotArea) {
1262
- plotArea.hovered = true;
1261
+ if (overPlotArea && !this._plotAreaHovered) {
1262
+ this._plotAreaHovered = true;
1263
1263
  this._plotArea.hover(this, e);
1264
- } else if (plotArea.hovered && !overPlotArea) {
1264
+ } else if (this._plotAreaHovered && !overPlotArea) {
1265
+ this._plotAreaHovered = false;
1265
1266
  this.trigger(PLOT_AREA_LEAVE);
1266
- plotArea.hovered = false;
1267
1267
  }
1268
1268
  }
1269
1269
 
@@ -31,4 +31,4 @@ class ChartService {
31
31
  }
32
32
  }
33
33
 
34
- export default ChartService;
34
+ export default ChartService;