Mobile: Convert from screen to card coords
Brian Milby
brian at milby7.com
Tue Oct 18 09:05:03 EDT 2022
When you use “none” as the mode, then screen and card coordinates will be the same. When the app starts you should get a resizeStack that provides the opportunity to adjust the layout.
Brian Milby
brian at milby7.com
> On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi Brian,
>
> I knew I forgot something...
>
>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>>
>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions.
>
> OK, I definitively understand that!
>
> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates
> and I have no idea how to „convert" these to CARD coordinates.
>
> We need that to move the bottom/top controls up or down if neccessary,
> know what I mean? Any hints very welcome!
>
>> ...
>> Brian Milby
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de
More information about the use-livecode
mailing list