paulrosen / abcjs

javascript for rendering abc music notation
Other
1.9k stars 281 forks source link

clickListener for lyrics #523

Open SlowBubble opened 3 years ago

SlowBubble commented 3 years ago

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 commented 3 years ago

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.

paulrosen commented 3 years ago

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.

SlowBubble commented 3 years ago

Good to know, thanks!