Skip to main content
DSchm.4
Associate
August 26, 2022
Solved

Can't swipe container with static graph

  • August 26, 2022
  • 2 replies
  • 963 views

Hi,

probably my problem is very simple to solve. I have a swipe container with a static graph that fills almost the entire screen. My problem is that I can't swipe the container because the static graph widget processes the touch event, even the click listener is not enabled.

Is there a simple solution to pass the event to the swipe container so I can move it?

Thank you very much.

Best regards

Dominik Schmid

This topic has been closed for replies.
Best answer by Yoann KLEIN

Hello @Community member​ ,

You could call graph1.setTouchable(false) method in your code, in order to disable touch events on this widget.

That should fix your issue.

Let me know how it is going,

/Yoann

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
August 26, 2022

Hello @Community member​ ,

You could call graph1.setTouchable(false) method in your code, in order to disable touch events on this widget.

That should fix your issue.

Let me know how it is going,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
DSchm.4
DSchm.4Author
Associate
August 27, 2022

Hello Yoann Klein,

thank you very much. That fixed my problem.

Best regards

Dominik