Swipe on touch screen for ScrollablePane - any ideas?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Just popping in
Just popping in
Posts: 1
Joined: Thu Dec 20, 2018 11:18

Swipe on touch screen for ScrollablePane - any ideas?

Postby besteto » Tue Jan 15, 2019 11:40


We are using CEGUI in our own engine for mobile devices. It works great, but we have a problem with ScrollablePane. We expected that we will be able to scroll the content of the scrollable pane not only via scrollbar but also with a swipe over the content container of the scrollable pane. But it's possible to use only the scrollbar in our test application. Should we just add something we forget? Or should we care about that opportunity on our own?


User avatar
Posts: 1997
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Swipe on touch screen for ScrollablePane - any ideas?

Postby Ident » Thu Jan 17, 2019 07:30

Only the scrollbar does this. Modifying this so that it also works on the scrollable pane would be fairly easy though.
CrazyEddie: "I don't like GUIs"

Quite a regular
Quite a regular
Posts: 70
Joined: Tue May 24, 2011 05:54

Re: Swipe on touch screen for ScrollablePane - any ideas?

Postby niello » Sat Jul 27, 2019 21:43


In the case the author or someone else needs this functionality, it is implemented in PR:
https://bitbucket.org/cegui/cegui/pull- ... mprovement

Use ScrollablePane::setSwipeScrollingEnabled method to enable it.

Kinetic scrolling is not implemented, but may be added in a future. If you want to do it yourself, subclass ScrollablePane, reimplement ScrollablePane::scrollContentPane and implement update(). Please share your results if you implement it faster than we do.

Note that widgets added to a scrollable pane must be able to propagate unprocessed cursor input to the parent. It is controlled via setCursorInputPropagationEnabled() or via the property "CursorInputPropagationEnabled".

Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests