flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
9.29k stars 913 forks source link

Nested components cannot trigger click events #635

Closed lc-c closed 3 years ago

lc-c commented 3 years ago

Description

Nested components cannot trigger click events

Development environment

Flame version: ^1.0.0-rc5

Flutter doctor:

 Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Linux, locale zh_CN.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.0)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

Runtime

This issue is related to running on which platform? (Select all that apply)

Minimal reproducible code (Required for bugs)

Include a minimal code that reproduces the problem add it inline using code block markdown, or a link to Github repository:

spydon commented 3 years ago

@lc-c you'll have to include some code and more explanation to what is not working here, a normal composed component and click events are working for me.

lc-c commented 3 years ago

game -> PositionComponent -> PositionComponent ->PositionComponent Finally, the component cannot trigger the click event

erickzanardo commented 3 years ago

@lc-c as mentioned on the template, we need some minimal reproducible code when a bug is reported, could you please take a look on that so we can continue on analyzing this?

spydon commented 3 years ago

Fixed in 1.0.0-rc6