wig: disabled onhover visuals for heatMap display mode
@@ -205,8 +205,11 @@ export class WIGTrack extends CachedTrack {
onHover({x, y}) {
super.onHover({x, y});
if (this.shouldDisplayTooltips) {
+ const { isHeatMap } = this.cache.coordinateSystem || {};
const hoveredItem = this._wigRenderer.onMove(this.viewport, {x, y}, this.cache.data);
- if (this.hoveringEffects) this._wigRenderer.hoverItem(hoveredItem, this.viewport, this.cache.data, this.cache.coordinateSystem);
+ if (this.hoveringEffects && !isHeatMap) {
+ this._wigRenderer.hoverItem(hoveredItem, this.viewport, this.cache.data, this.cache.coordinateSystem);
+ }
if (hoveredItem) {
const {dataItem} = hoveredItem;
this.tooltip.setContent([['Count', Math.ceil(dataItem.value)]]);
