karaoke-dev / karaoke

Will be the best karaoke system.
http://blog.karaoke.dev
GNU General Public License v3.0
204 stars 16 forks source link

Change the drag caret position will not change the caret position. #2125

Closed andy840119 closed 1 year ago

andy840119 commented 1 year ago

As title.

Need to make sure that caret position will have value if click or drag the lyric before. But should be better to make them as individual behavior.

Means "caret position" and "drag caret position" should not exists at the same time.

Also. Expose the caret position algorithm for easier to let outside know what is current algorithm is using. So they can prepare the caret index position or create the drawable caret.

andy840119 commented 1 year ago

Guess should mark as related to the #2007.