Skip to main content
BParh.1
Senior III
July 4, 2021
Solved

Why dynamic graph does not react toward swipe gesture?

  • July 4, 2021
  • 2 replies
  • 1032 views

So assume we setup up a swipe container contain:

  1. normal container contain e.g. a box
  2. dynamic graph

When we run, the normal container would be shown first. Upon swipe it would go to dynamic graph. But when we swipe the dynamic graph, it would not go to the normal container. Why so?

If I set the dynamic graph as invisible, then the issue not seen i.e. we can swipe away from the dynamic graph, but this would be meaningless.

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

Hello BParh.1,

Because the graph is clickable, the click event is caught by the graph like a button.

Please refer to the enclosed project (done with newest version of TouchGFX 4.17) where a blue button can be clicked and the swipe container will still work.

You can do something very similar with the graph.

/Alexandre

2 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
July 7, 2021

Hello BParh.1,

Because the graph is clickable, the click event is caught by the graph like a button.

Please refer to the enclosed project (done with newest version of TouchGFX 4.17) where a blue button can be clicked and the swipe container will still work.

You can do something very similar with the graph.

/Alexandre

BParh.1
BParh.1Author
Senior III
July 7, 2021

Thank you @Alexandre RENOUX​ , ok that make sense. And I appreciate you spend time and effort to give the sample, so nice of you :grinning_face: