phaser-scrollable
phaser-scrollable copied to clipboard
After removeAll mouseclick event is not working
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.
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.
scroller.setPosition({y:-700}); scroller.visible = false; scroller.stop();
I just try this 3 lines, its working fine. Thank you for your response trueicecold