Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging cursor trigger PressInteraction.Release #356

Open
frankois944 opened this issue Sep 24, 2024 · 4 comments
Open

Dragging cursor trigger PressInteraction.Release #356

frankois944 opened this issue Sep 24, 2024 · 4 comments
Labels
versions issue of incompatible versions

Comments

@frankois944
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

frankois944 commented Sep 25, 2024

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
Copy link
Owner

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

@MohamedRejeb MohamedRejeb added the versions issue of incompatible versions label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
versions issue of incompatible versions
Projects
None yet
Development

No branches or pull requests

2 participants