Page 1 of 1

Swipe on touch screen for ScrollablePane - any ideas?

Posted: Tue Jan 15, 2019 11:40
by besteto
Hello!

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?

Thanks!

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

Posted: Thu Jan 17, 2019 07:30
by Ident
Only the scrollbar does this. Modifying this so that it also works on the scrollable pane would be fairly easy though.

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

Posted: Sat Jul 27, 2019 21:43
by niello
Hi.

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".