abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

clickListener for lyrics

Open SlowBubble opened this issue 5 years ago • 3 comments

I am trying out the awesome abcjs editor at https://www.abcjs.net/abcjs-editor.html. It seems the clickListener does not listen to clicks on the lyrics. Is that expected?

SlowBubble avatar Sep 21 '20 19:09 SlowBubble

This may be related: the click event does not distinguish between the click on the chord symbol and the click on the note associated with the chord.

SlowBubble avatar Sep 21 '20 20:09 SlowBubble

That's true - I'm planning on breaking the different parts of the note apart for more fine-grained targeting. That will be soon, but I don't have a date.

You can set it up to click on lots of different things with the selectTypes parameter. By default it only selects notes, rests, and bar lines.

Here is more information: https://paulrosen.github.io/abcjs/visual/dragging.html#specifying-what-is-selectable

While looking this over, I realized that lyrics are not included as a selectable item. That is a bug and I'll have that fixed in the next release.

paulrosen avatar Sep 25 '20 23:09 paulrosen

Good to know, thanks!

SlowBubble avatar Sep 26 '20 20:09 SlowBubble