Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LineMarkSeries blocking pointer events on other LineMarkSeries #1152

Open
wants to merge 1 commit into
base: master
from

Conversation

@samulisuomi
Copy link

samulisuomi commented Apr 10, 2019

Fixes #1004 (and probably #1099 (comment)).

Issue

Having multiple LineMarkSeries overlapping in a single plot may result in some of the marks not firing the onValueMouseOver callback.

This is because the LineMarkSeries draws an invisible area with the <plot> that is blocking pointer events on marks rendered behind it. I've set lineStyle={{ fill: "#80808080" }} in my codesandboxes to highlight this otherwise invisible area.

Before

https://codesandbox.io/s/43q7xyq3vw

before

After

https://codesandbox.io/s/xp3w5kly1p

after

@CLAassistant
Copy link

CLAassistant commented Apr 10, 2019

CLA assistant check
All committers have signed the CLA.

@samulisuomi
Copy link
Author

samulisuomi commented Apr 10, 2019

Now that I thought about this more, shouldn't this bug also appear when using just LineSeries? I'm not sure how to fix the issue in that case. For LineMarkSeries, fixing the issue this way seems like a reasonable approach for now but let me know if you have other ideas.

@bmaupin
Copy link

bmaupin commented Jun 27, 2019

This should fix #1157 as well

@samulisuomi samulisuomi force-pushed the samulisuomi:master branch from 64dde73 to c242f71 Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.