I am using Jetpack Compose desktop... I want to highlight all the matching words in a text when the mouse is hovered over a word, is there any way to know which part of the string currently the mouse cursor is on? For example where I use
addStyle
inside
AnnotatedString.Builder
, a callback which is called when the mouse is over the substring between start and end.