Two touch buttons say left and right get reversed when compiled

In SLS a display 800w 480h is designed ( in landscape mode) with left and right buttons
left button on the left right button on the right… buttons are equi-spaced
left button with left arrow image on it and right with a right arrow
when compiled the left button looks fine but when clicked it is the right button that gets the call and vice versa in landscape mode
If the display is rotated lv_disp_set_rotation(disp, LV_DISP_ROT_90);
the buttons work as expected arrows look fine in either orientation
Any ideas what I need to do to get landscape working?

On further investigation it appears that a display in landscape (800w 480h) mode permits visual design in that mode but that controls buttons sliders utilizing touch are locked to portrait coords as if X and Y are swapped
as if 480w 800h had been selected
The LCD viewed as landscape looks as designed labels button sliders
but the results from the touch are in portrait coordinates
It could be hardware in that the hardware needs return landscape coords
not portrait
Any ideas?

Creating a project of 2 buttons side-by-side with rotation set to e.g. 90 degrees simply swaps the horizontal and vertical sizes in the exported SquareLine Studio project. In that case the buttons are working fine.
Your display/touchpad driver should have a ‘rotate’ function where you can adjust the rotation according to your project’s needs. But that’s implementation-dependent. I guess it’s best if you don’t set any rotation in SquareLine Studio project, and only rotate the display and touchscreen drivers to match each other in the driver-configuration. You should see the driver’s documentation and set the rotation in your code, and/or experiment until it’s OK… (For example, when it’s realized that a ILI9341 display’s default orientation ‘portrait’ you should set the resolution in SquareLine Studio accordingly and probably no rotation will be needed at all. You can use the rotation in project settings, but it’s more straightforward to change the height and width if it doesn’t match the hardware’s default.)