MohamedRejeb / compose-rich-editor

A Rich text editor library for both Jetpack Compose and Compose Multiplatform, fully customizable, supports HTML and Markdown.
https://mohamedrejeb.github.io/compose-rich-editor/
Apache License 2.0
1.16k stars 73 forks source link

Dragging cursor trigger PressInteraction.Release #356

Open frankois944 opened 1 month ago

frankois944 commented 1 month ago

Hi,

I'm using the v1.0.0-rc07, compose multiplatform (1.7.0-beta02) on Android, I'm observing the interactionSource of the editor.

When I'm moving/dragging the cursor, the event PressInteraction.Release is triggered.

I have something like this :

   val richTextState = rememberRichTextState()
   val interactionSource = remember { MutableInteractionSource() }

    LaunchedEffect(interactionSource) {
        interactionSource.interactions.collect { interaction ->
            println(interaction)
        }
    }
   RichTextEditor(
         interactionSource = interactionSource,
         state = richTextState
   )
MohamedRejeb commented 1 month ago

Hi, Thanks for reporting this issue. I will check it. Currently, the library is using Compose 1.6.11 so it maybe just an issue with versions.

frankois944 commented 1 month ago

Also, I'm trying the dev branch and future version of compose 1.7.0, the Editor is much instable on iOS than the 1.6.*.

frankois944 commented 1 month ago

Hi, Thanks for reporting this issue. I will check it. Currently, the library is using Compose 1.6.11 so it maybe just an issue with versions.

Yes, that's the reason. I'm using your editor with iOS and using the latest version of compose fix/add some issues, beta issues :).

the rc1 of compose 1.7.0 is very close.

MohamedRejeb commented 1 month ago

Hopefully, I will start publishing releases for Compose alpha/beta/rc versions