royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yishay Weiss <>
Subject RE: List Item renderer Click event finds a component in its way
Date Mon, 02 Jul 2018 14:38:10 GMT
Take a look at ItemRendererMouseController.handleMouseUp() in Basic. It uses currentTarget.

From: <> on behalf of Carlos Rovira <>
Sent: Monday, July 2, 2018 5:27:08 PM
Subject: List Item renderer Click event finds a component in its way


what's the best way to handle a click event in a List when the Item
renderer has some components that can interfere in the click event?

I have an icon and a Label in the item renderer and if I click on one of
those "" is logically set to this components.

How to make "" always resolve to the item-renderer, even if I
click in the label or the icon.
If the label or the icon has a click event, then clicking on one of those
components should call it's own click handler, but if nothing is set up, a
click in any part of the renderer should call the list click event handler.

In JS I can set pointer-events : none for sub components in item renderers
but does not seems the best way to handle this


Carlos Rovira

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message