Skip to content

[3.4.1] not able to detect which bar was clicked (working in 2.x) #9387

Answered by etimberg
jacekkarczmarczyk asked this question in Q&A
Discussion options

You must be logged in to vote

One option is to set the interaction mode to 'nearest' https://codepen.io/etimberg/pen/mdmEXbm?editors=1010

Another option is to have the onClick handler look directly under the mouse point using getElementsAtEventForMode https://codepen.io/etimberg/pen/xxdOpox?editors=1010

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jacekkarczmarczyk
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #9378 on July 09, 2021 22:56.