rexrainbow / phaser3-rex-notes

Notes of phaser3 engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to only interact with child of sizer in scrollable panel?

ngodinhdai286 opened this issue · comments

I create a scrollable panel with the code below, but I can not find way to only interact with the child of the sizer (here is the button), please help me

code

commented

Sorry for missing this issue.
Here is the solution of interactive with children of scrollable panel.
The easy way is to set scene.input.topOnly to false.

commented

Or, disable scroller by adding

{
    // ...
    scroller: false
}

in config parameter of creating scrollablepanel

Thanks for replying me rex, but I am still stuck in that issue. The situation is I just want to be able to click in the red marked button in the picture
image

commented

Here is a test case, interactive logic is at line 49-62.