I'm developing a game for HTML5, and I've had trouble with scrolling on the mobile version. Inside my ScrollContainer, I have a GridContainer with an array of OptionButtons. However, trying to scroll by pressing down causes the OptionButton's popup to be activated (rather than scroll), even when input events are set to pass. I've tried enabling the scrollbar as a workaround, but it's far too thin and at the edge of the screen to be clickable on mobile. Any ideas? Thanks in advance!
Can't Scroll on Mobile with OptionButtons
- Edited
You can scroll by swiping in any part of the scrollable container, not only in the scroll bar. Is there enough empty space in the container to do that, or can you create space by making the buttons smaller?
DaveTheCoder Certainly, creating space would work, but considering my game is in the portrait orientation (on mobile no less), space is already very limited. I feel like adding space would look unnatural and take valuable space from the important option buttons; also, players may not immediately understand that they have to use the empty space to scroll. Thanks for the suggestion, though!
- Edited
So you want to be able to touch the area of the container where the buttons are, and either activate a button's popup, or scroll, depending on your intent?