Skip to content

Commit

Permalink
Change click check, @kurkle request
Browse files Browse the repository at this point in the history
  • Loading branch information
Weit committed Sep 12, 2019
1 parent 7d4fb13 commit d6f5b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/core.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ helpers.extend(Chart.prototype, /** @lends Chart */ {
me._lastEvent = null;
} else {
me.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);
if (me._lastEvent !== 'click') {
if (e.type !== 'click') {
me._lastEvent = e;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ var exports = Element.extend({
me._lastEvent = null;
} else {
me._active = me._chart.getElementsAtEventForMode(e, options.mode, options);
if (me._lastEvent !== 'click') {
if (e.type !== 'click') {
me._lastEvent = e;
}
}
Expand Down

0 comments on commit d6f5b0b

Please sign in to comment.