Android tap location doesn't match visual location

J. Landman Gay jacque at hyperactivesw.com
Sat Nov 20 01:45:26 EST 2021


I've done several fake dialogs. The trick is to group the dialog with a a 
semi-transparent full screen graphic layered behind the dialog group. 
Greying the screen is normal behavior on Android and works on iOS too. The 
graphic has blocker mouse handlers so clicking it does nothing. That way 
you can script the dialog buttons to respond themselves. The user needs to 
click one of the buttons to make the dialog go away, at which point you 
hide the group.

The buttons can put the response in the dialogData, which is a built in 
mechanism to transfer custom messages to a script, or else you can put the 
response in a global or a custom property.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 19, 2021 10:49:57 PM scott--- via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> I’m having trouble with an app that up until now has just been for iOS. 
> Most of the changes have been pretty straight forward but I’ve encountered 
> a specific case where touching a button doesn’t pass the touch message to 
> the button being tapped… unless I touch significantly below the button (I 
> also had to switch from mouse messages to touch messages in this particular 
> case.) This is not a general issue. It only happens when I show a group  
> containing the buttons in question and while this group is displayed there 
> is repeat loop running that includes  “wait with messages” (I’m faking a 
> modal dialog.) I encountered this once before under the same circumstances 
> (a fake modal dialog while moving an iOS app to Android) and simply 
> switched to using the built in dialog. Unfortunately, that won’t work in 
> this case.  Any thoughts?
>
> --
> Scott Morrow
>
> Elementary Software
> (Now with 20% less chalk dust!)
> web       https://elementarysoftware.com/
> email     scott at elementarysoftware.com
> booth    1-360-734-4701
> ------------------------------------------------------
>
>
>
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list