Skip to content

Commit

Permalink
Fixed #5533, stickyTracking when set to false cause highlighting wron…
Browse files Browse the repository at this point in the history
…g point.
  • Loading branch information
pawelfus authored and TorsteinHonsi committed Aug 16, 2016
1 parent b435fba commit 87d3802
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/highcharts.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -10379,6 +10379,11 @@

// Handle shared tooltip or cases where a series is not yet hovered
} else {
// When we have non-shared tooltip and sticky tracking is disabled,
// search for the closest point only on hovered series: #5533, #5476
if (!shared && hoverSeries && !hoverSeries.options.stickyTracking) {
series = [hoverSeries];
}
// Find nearest points on all series
each(series, function (s) {
// Skip hidden series
Expand Down
5 changes: 5 additions & 0 deletions js/highmaps.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -9900,6 +9900,11 @@

// Handle shared tooltip or cases where a series is not yet hovered
} else {
// When we have non-shared tooltip and sticky tracking is disabled,
// search for the closest point only on hovered series: #5533, #5476
if (!shared && hoverSeries && !hoverSeries.options.stickyTracking) {
series = [hoverSeries];
}
// Find nearest points on all series
each(series, function (s) {
// Skip hidden series
Expand Down
5 changes: 5 additions & 0 deletions js/highstock.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -10379,6 +10379,11 @@

// Handle shared tooltip or cases where a series is not yet hovered
} else {
// When we have non-shared tooltip and sticky tracking is disabled,
// search for the closest point only on hovered series: #5533, #5476
if (!shared && hoverSeries && !hoverSeries.options.stickyTracking) {
series = [hoverSeries];
}
// Find nearest points on all series
each(series, function (s) {
// Skip hidden series
Expand Down
5 changes: 5 additions & 0 deletions js/parts/Pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ Pointer.prototype = {

// Handle shared tooltip or cases where a series is not yet hovered
} else {
// When we have non-shared tooltip and sticky tracking is disabled,
// search for the closest point only on hovered series: #5533, #5476
if (!shared && hoverSeries && !hoverSeries.options.stickyTracking) {
series = [hoverSeries];
}
// Find nearest points on all series
each(series, function (s) {
// Skip hidden series
Expand Down

0 comments on commit 87d3802

Please sign in to comment.