Skip to main content
V.H
Senior
November 1, 2021
Solved

swipeContainer cannot work

  • November 1, 2021
  • 2 replies
  • 757 views

Hi,

  Add a button on the swipeContainer, the swipeContainer cannot slide when the starting point of the gesture is on this button.

This topic has been closed for replies.
Best answer by V.H

Workaround for swipe containers not swiping if dragged on a button within (st.com)

Perfect solution to my problem, thank you!

2 replies

Romain DIELEMAN
ST Employee
November 1, 2021

Hi,

Just for our knowledge what version of TouchGX are you using ?

This event is expected as TouchGFX first gets the coordinate of your first touch which will be used for the button. You would need to overwrite the touch implementation of the button widget where maybe you could cancel the button trigger when the x of the touch evolves (so when you do a swipe to the right or left).

/Romain

V.H
V.HAuthorBest answer
Senior
November 1, 2021