how to trigger hover events for elements behind other elements? #2421
Answered
by
sergeykimaia
sergeykimaia
asked this question in
Q&A
-
on a chart im working on i have scatter points and a VictoryBrushLine in my example i want to trigger background change on scatter points on hover, but want the brush behavior to be unchanged here's the code:
|
Beta Was this translation helpful? Give feedback.
Answered by
sergeykimaia
Aug 14, 2022
Replies: 1 comment
-
found a solution, i'll have two victoryBrushLines, the one on top will have pointerEvents: 'none', and the one behind the scatter points will use events to trigger the one on top |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergeykimaia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found a solution, i'll have two victoryBrushLines, the one on top will have pointerEvents: 'none', and the one behind the scatter points will use events to trigger the one on top