Skip to main content
CPrad.1
Associate
February 22, 2021
Solved

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

  • February 22, 2021
  • 2 replies
  • 1012 views

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?

This topic has been closed for replies.
Best answer by Alexandre RENOUX

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

2 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
February 23, 2021

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

CPrad.1
CPrad.1Author
Associate
February 23, 2021

Hello Alexandre,

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

Carina.