-
-
Save andreymusth/5bbe3392b7181d90964598d62a7e8e16 to your computer and use it in GitHub Desktop.
process 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val hitResult: MutableList<PointerInputFilter> = mutableListOf() | |
fun process( | |
pointerEvent: PointerInputEvent, | |
... | |
): ProcessResult { | |
// Gets a new PointerInputChangeEvent with the PointerInputEvent. | |
val internalPointerEvent = | |
pointerInputChangeEventProducer.produce(pointerEvent, positionCalculator) | |
// Add new hit paths to the tracker due to down events. | |
internalPointerEvent.changes.values.forEach { pointerInputChange -> | |
if (pointerInputChange.changedToDownIgnoreConsumed()) { | |
root.hitTest( | |
pointerInputChange.position, | |
hitResult | |
) | |
... | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment