2022-10-08 03:32 PM
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
2022-10-12 01:39 AM
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
2023-09-12 01:40 AM
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.