cancel
Showing results for 
Search instead for 
Did you mean: 

Swipe Container Detecting Swipe

WhyIsThisSo
Associate III

Is there a way of detecting a swipe has been performed using the swipe container?

I see others have used some callbacks but these posts are a few years old.

I would think this would be a "default" out of the box functionality, after all it is a SWIPE container?

Do anyone have some sample project code they could post

cc:@Martin KJELDSEN​ 

2 REPLIES 2
Martin KJELDSEN
Chief III

Hi,

You could overwrite the handleX event handlers which are called by the framework. handleDragEvent and handleClickEvent, do something with that information and then process the event as usual in your container

/Martin

@Martin KJELDSEN 

I want to override dragEvent of an swipeContainer but dont know how to.  If i override 

virtual void handleDragEvent(const DragEvent& event);

in "screen.hpp" then swipe doesn't work so smooth as before. I guess it is because I probably overriden Screens dragEvent. I would like to see some code example of how to override a an virtual function of an memmber of screen like swipe container. 

 

I need this becuase I want to detect swipe in vertical direction, so that i can expend the slideMenu from top.