GUI Guider 1.4.0 -> LVGL v8.2.0 -> LPC54S018
Today when doing a test of our GUI I discovered that there are certain widgets on one screen that I can touch and drag to the left or right which is an unwanted behavior. The widgets in question are one Label (all other labels on the screen do not seem to have this issue) and two side by side Containers that are separate widgets but for this bug behave as a single item as they drag to the left or right together. I have uploaded a short video to show this behavior. This behavior was captured on the Simulator (C) but I see the same result testing on the actual hardware.
Is there any way to prevent this behavior?
I found what appears to be the cause of this problem. It seems to come about when the size/selection box around a widget extends outside of either the screen area or the container area. Extending too far to the right causes the left/right drag to happen and having the box extend too far down causes an up/down drag to happen.
I haven't extensively tested but it seems to only happen if the size/selection box spills over to the right or downwards. Spilling over to the left or top doesn't seem to cause the problem.
Hi mitchkapa,
Yes, if the right border of a widget is out side of screen, the left/right drag can happen, if the button border of a widget is out side of screen, the up/down drag can happen. LVGL has two mode to handle such case, scroll bar or screen drag. GUI Guider uses the screen drag mode.
Best Regards,
Zhenhua