processMouseEvents

open override fun processMouseEvents(eventType: MouseEventType, handler: (event: MouseEvent, phase: UIEventPhase) -> Unit): Subscription

Adds the given handler for MouseEvents. Differs from a handleMouseEvents in a way that its handler doesn't return an UIEventResponse, but Processed is returned implicitly to the framework.

Use processMouseEvents if you always handle the event (you never skip/drop events). This means that processMouseEvents can be used if you find yourself always returning Processed form your event listeners.

Sources

(source)
Link copied to clipboard