cancel
Showing results for 
Search instead for 
Did you mean: 

A tap of the entire display screen and that same screen also has a swipeContainer.

CPrad.1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal

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

View solution in original post

2 REPLIES 2
Alexandre RENOUX
Principal

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

Hello Alexandre,

Thank you for your help. I understand your proposal and will implement it in my application.

Carina.