Skip to content

Limit active element changes to chartArea#9970

Merged
kurkle merged 3 commits intochartjs:masterfrom
kurkle:tooltip-onhover-active
Dec 8, 2021
Merged

Limit active element changes to chartArea#9970
kurkle merged 3 commits intochartjs:masterfrom
kurkle:tooltip-onhover-active

Conversation

@kurkle
Copy link
Member

@kurkle kurkle commented Dec 8, 2021

Fix: #9842

I extracted the active element determination code for core and tooltip to a helper function for less complexity.

Because there was no public way of properly determining if the event is inside chartArea from the tooltip plugin, I added a inChartArea boolean to the event args. Could be useful for external plugins.

@kurkle kurkle merged commit ba6b446 into chartjs:master Dec 8, 2021
@peteruithoven
Copy link

@kurkle thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Showing external tooltip on legend hover issue

3 participants