Skip to main content
DSchm.4
Associate
Aug 26, 2022 9:43 AM UTC
Solved

Can't swipe container with static graph

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.
Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Aug 26, 2022 1:22 PM UTC

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

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Aug 26, 2022 1:22 PM UTC

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
Aug 27, 2022 5:54 AM UTC

Hello Yoann Klein,

thank you very much. That fixed my problem.

Best regards

Dominik