phaser-scrollable icon indicating copy to clipboard operation
phaser-scrollable copied to clipboard

After removeAll mouseclick event is not working

Open balamurugan1991 opened this issue 6 years ago • 2 comments

In my game I add your scroll in the info page. when i click info button pop-up open then list all game details. after click the info close button, i use this code to remove text,

scroller.removeAll()

after enter this code all text are removed. But inside the scroll area mouse click is not working. i don't know how to remove the scroll. what is the procedure. After remove scroll how to enable mouse click inside the scroll area.

Please help me, i need to complete the project today.

balamurugan1991 avatar Jun 06 '18 07:06 balamurugan1991

Did you try to remove the scroller itself? it basically a group. so if you have:

var scroller = game.add.existing(new ScrollableArea(0, 0, game.width, game.height));

just remove "scroller" from the stage.

trueicecold avatar Jun 17 '18 11:06 trueicecold

       scroller.setPosition({y:-700});
       scroller.visible = false;
       scroller.stop();

I just try this 3 lines, its working fine. Thank you for your response trueicecold

balamurugan1991 avatar Jun 18 '18 06:06 balamurugan1991