I hope to make UI, which supports swipe and click.
--------------------------
| |
| Area B |
| |
| -------- |
| | | |
| |Button| |
| | | |
| -------- |
| |
| |
--------------------------
Screen1 (Full screen)
When the user swipe the any part of the screen to left/right, the screen is changed to the next screen.
And when the user click the button on the screen, the button is clicked(for example, change color).
Of course, when the user click the empty are(Area B), nothing happened.
To implement this, I tried to make a topmost full-screen size simpletouchhandler.
And, this simpletouchhandler decided if left(right)-swipe is detected or not.
If not, the simpletouchandler called the DeflectCursor function, to hand over the event.
But, the problem is when user clicked the button in very short time.
The only pressed and released events are generated.
So, the DeflectCursor function is called in the released-event slot.
At that case, the simpletouchhandler receive the release event with AutoDeflected=True.
And, the touchhandler of Button received only the press-event.
So, What is the best solution to generate the full 'grab cycle'?
Thanks and best regards.
Jinho.