compose-multiplatform: Hover doesn't always disappear after exit

Seems like sometimes the hover exit is not working as expected, as the item is still marked as if it was still being hovered.

Code to reproduce it:

fun main() = singleWindowApplication {
    LazyColumn {
        items(count = 10) { i ->
            Text(
                text = "Item number $i",
                modifier = Modifier.clickable {}
            )
        }
    }
}

GIF showing the problem where I hover the list’s items and sometimes some of them keep being hovered when the mouse is not on top them:

hover_issue

OS: Ubuntu 20.04 & Manjaro with KDE Compose Desktop Version: 1.0.0-beta5 (started happening since the first version that included the hovering)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

In 1.0.0-rc12 seems to work nicely 🥳 Good job and thanks @igordmn !

It appears, it isn’t completely fixed in 1.0.0. The new found cases should be fixed in 1.1.0

With rc5 the issue seems to be solved when simply hovering with the cursor, however, when hovering an item in a lazy list and then scrolling, it still sometimes ends up with a hovered line that shouldn’t be.