Skip to content

ListView unclickable with haxeui-hxwidget #137

@elnabo

Description

@elnabo

Expected Behavior

Clicking an item of a ListView should trigger onItemClick.

Current Behavior

Nothing happen. onItemClick is bound to Mouse.CLICK which correspond to clicking on Button or similar. However the ItemRenderer are Label which doesn't generate such events.

Possible Solution

  • Change the ItemRenderer to Button but this will not look good.
  • Change onItemClick to trigger on Mouse.LEFT_DOWN but this will change the behavior of all other backends. Or possibly add the Mouse.LEFT_DOWN trigger only for hxwidget (maybe also xwt) in ListView

Steps to Reproduce (for bugs)

  1. Have a ListView with items
  2. Compile with haxeui-hxwidget
  3. Try to click on an item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions