Skip to content

Commit

Permalink
Added event to hide the tooltip on touch devices when touching outsid…
Browse files Browse the repository at this point in the history
…e the plot area. Closes #1203.
  • Loading branch information
TorsteinHonsi committed Jun 21, 2013
1 parent 6425d8f commit 81e1ed6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/highcharts.src.js
Expand Up @@ -9622,6 +9622,10 @@ Pointer.prototype = {
this.runPointActions(e);

this.pinch(e);

} else {
// Hide the tooltip on touching outside the plot area (#1203)
this.reset();
}

} else if (e.touches.length === 2) {
Expand Down
4 changes: 4 additions & 0 deletions js/highstock.src.js
Expand Up @@ -9622,6 +9622,10 @@ Pointer.prototype = {
this.runPointActions(e);

this.pinch(e);

} else {
// Hide the tooltip on touching outside the plot area (#1203)
this.reset();
}

} else if (e.touches.length === 2) {
Expand Down
4 changes: 4 additions & 0 deletions js/parts/Pointer.js
Expand Up @@ -746,6 +746,10 @@ Pointer.prototype = {
this.runPointActions(e);

this.pinch(e);

} else {
// Hide the tooltip on touching outside the plot area (#1203)
this.reset();
}

} else if (e.touches.length === 2) {
Expand Down

0 comments on commit 81e1ed6

Please sign in to comment.