cancel
Showing results for 
Search instead for 
Did you mean: 

Can't swipe container with static graph

DSchm.4
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Yoann KLEIN
ST Employee

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 KLEIN
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
Yoann KLEIN
ST Employee

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 KLEIN
ST Software Developer | TouchGFX
DSchm.4
Associate

Hello Yoann Klein,

thank you very much. That fixed my problem.

Best regards

Dominik