Remove unnecessary argument

This commit is contained in:
Alexander Nozik 2024-07-08 11:55:11 +03:00
parent 3a4c9133c6
commit 5da7ee7944

View File

@ -36,7 +36,7 @@ public fun <T : Any> Modifier.canvasControls(
val point = state.space.ViewPoint(coordinates, zoom)
if (event.type == PointerEventType.Move) {
features.forEachWithAttribute(HoverListenerAttribute) { id, feature, listeners ->
features.forEachWithAttribute(HoverListenerAttribute) { _, feature, listeners ->
if (point in feature as DomainFeature) {
listeners.forEach { it.handle(event, point) }
return@forEachWithAttribute