2021-02-22 11:27 AM
I'm working on a project using TouchGFX and I need to add a tap of the entire display screen and that same screen also has a swipeContainer. And I'm having trouble solving this problem, because I can't get the swipe to work properly.
Would anyone have an example that could help me?
Solved! Go to Solution.
2021-02-22 11:25 PM
Hello CPrad.1,
You need to differentiate the two events. If you have tap then a slide, this event will be given to the swipe container. Otherwise, if you have a tap and release event without slide you can perform the task unrelated to the swipeContainer.
You can have a look at this old thread to understand what I mean by "giving the event to the swipe container or not" : https://community.st.com/s/question/0D50X0000CBnSgNSQV/swiping-and-scrolling.
/Alexandre
2021-02-22 11:25 PM
Hello CPrad.1,
You need to differentiate the two events. If you have tap then a slide, this event will be given to the swipe container. Otherwise, if you have a tap and release event without slide you can perform the task unrelated to the swipeContainer.
You can have a look at this old thread to understand what I mean by "giving the event to the swipe container or not" : https://community.st.com/s/question/0D50X0000CBnSgNSQV/swiping-and-scrolling.
/Alexandre
2021-02-23 12:53 AM
Hello Alexandre,
Thank you for your help. I understand your proposal and will implement it in my application.
Carina.