jeff
12/19/2020, 5:01 AMmyView.onClick { ... }
is there a way to clear/remove that listener? Couldn't find anything in the documentation...RezMike
12/19/2020, 5:04 AMonClick { ... }
, you should check Component
classes insteadjeff
12/19/2020, 5:08 AMMouseComponent
but it doesn't appear to be nearly as full-featured as the extensions on View. For example,
override fun onMouseEvent(views: Views, event: MouseEvent) {
when {
event.typeClick -> {
// triggers whether or not mouse is inside view's bounds
println("CLICKED!")
}
event.typeEnter -> {
// never triggers?
println("ENTER")
}
}
}
I feel like I'm fighting the engine here, which probably means I'm doing something wrong...RezMike
12/21/2020, 3:07 AMjeff
12/21/2020, 3:26 AM