2023-08-23 12:51 AM
Hi, I have a question about the swipe operation in the TouchGFX Designer.
There is a function called swipe container, but even if you check it on the demo screen, you can only find horizontal swipe.
I would like to know how to enable vertical swipe.
Solved! Go to Solution.
2023-09-10 02:55 PM
Hello @TN ,
It's not possible to use the swipe container vertically yet, but we'll consider adding this feature in a future version of TouchGFX. The widgets that allow vertical swipes are the scrollable container, the scroll wheel and the scroll list for the moment.
2023-08-23 07:03 AM
Hello @TN,
Could you provide more precisions on what you wanna with this vertical swipe, like what do you want to apply it to ?
In any case, for detecting a swipe in any direction, I'd recommend you to use the handleDragEvent() event. That will enable you to get the starting and ending X and Y coordinates of the drag, and with those info you can determine if it is a horizontal or vertical swipe.
2023-08-23 08:01 PM
Thank you for answering, @Yoann KLEIN . I understand that vertical swipe judgment is possible.
What I want to do is to realize the vertical version of the swipe container as shown below.
Swipe Container | TouchGFX Documentation 4.18
But I couldn't find a parameter to change the orientation of the page.
2023-08-23 09:25 PM
If possible, please tell me one more thing about the swipe function. When you open the home screen of the iPhone, you can move the arrangement of the icons freely by pressing and holding the icon. Is it possible to achieve this same operation with buttons in TouchGFX?
2023-09-10 02:55 PM
Hello @TN ,
It's not possible to use the swipe container vertically yet, but we'll consider adding this feature in a future version of TouchGFX. The widgets that allow vertical swipes are the scrollable container, the scroll wheel and the scroll list for the moment.
2023-09-10 02:58 PM
Yes it's possible to move elements. In TouchGFX if you enable the "Draggable" mixin, you'll be able to move elements.
2023-09-18 09:56 PM
Thank you for your answer regarding vertical swipe and drag, @Osman SOYKURT .
I was able to resolve many questions.
I'm looking forward to the vertical swipe update.