Sam Michael
10/27/2021, 6:11 AMhover()
and
onMouseOver { println("moused over") }
but neither seem to be working. Anyone have any experience with this?Oleksandr Karpovich [JB]
10/27/2021, 7:46 AMSam Michael
10/27/2021, 8:07 AMSam Michael
10/27/2021, 8:08 AMSam Michael
10/27/2021, 8:13 AMSam Michael
10/27/2021, 9:27 AMSam Michael
10/27/2021, 9:41 AMval backgroundColor = mutableStateOf(rgb(202, 164, 114))
val tileLength = 40.px
Button(
{
onMouseOver { backgroundColor.value = rgb(202, 144, 64)}
onMouseLeave { backgroundColor.value = rgb(202, 164, 114)}
style {
outlineStyle("solid")
padding(0.px)
border { 1.px }
backgroundColor(backgroundColor.value)
}
This seems to work now, I think I forgot that when in inspect tools mouse cursor changes to lens which doesn't register mouse events the same waySam Michael
10/27/2021, 9:44 AMOleksandr Karpovich [JB]
10/27/2021, 3:20 PMhover
rule. So your code won't use inline styles and val backgroundColor = mutableStateOf(rgb(202, 164, 114))
Yousef
10/29/2021, 4:44 AMOleksandr Karpovich [JB]
11/01/2021, 6:00 PM