Native Livecode Pinch and Zoom

Ralph DiMola rdimola at evergreeninfo.net
Fri Jul 14 09:52:44 EDT 2017


BR,

We got “Pinch-and-zoom” to work by adding a viewport  meta-tag into the head of our html files:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1, user-scalable=yes"/>

Hope this helps...

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Sannyasin Brahmanathaswami via use-livecode
Sent: Thursday, July 13, 2017 1:59 PM
To: How to use LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Re: Native Livecode Pinch and Zoom

@ Ralph

as we say in HawaiI

"Oh! Ho!" What is this:

"    >I get pinch-and-zoom on both mobile platforms using the mobile browser
    >control. My html expert has had to tweak a couple of html pages now
    >and again to make it work. 

Can you ask him what the secret is?  Pleeze!

@ Richard: Requesting engine level "zoomable" is not OT at all. It's mission critical on small devices and would take LC apps to on phones to whole "'nother" level.

There is AnimationEngine also, that can be leveraged to some extent for this same purpose. but you have get some math going on …so, right "non-trivial"

It would be great if it were easier.

BR



On 7/12/17, 5:55 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    Hi Ralph,
    
    On 2017-07-12 17:41, Ralph DiMola via use-livecode wrote:
    >I get pinch-and-zoom on both mobile platforms using the mobile browser
    >control. My html expert has had to tweak a couple of html pages now
    >and again to make it work. Other on-line pages don’t pinch-and-zoom
    >but they also don’t pinch-and-zoom in Safari/Chrome either. I tried
    >the browser widget and it is nice that you can use it in the IDE and
    >Mobile but backed it out because the browser widget is missing
    >"canretreat" property and "retreat" command.
    
    Could you file a bug about this? (And any differences in parity between 
    widget and mobileControl, for that matter!).
    
    IIRC we added:
    
       go back in widget ..
       go forward in widget ...
    
    To navigate forward / back (so the retreat command is at least catered 
    for I think). There's also:
    
       do ... in widget ... (although this was a horrendous mistake 
    syntactically which we are now realizing!)
       launch url ... in widget ...
    
    If you put 'widget' into the LiveCodeScript section of the dictionary 
    then you'll see the widget specific tailorings of normal LiveCode Script 
    syntax.
    
    Warmest Regards,
    
    Mark.

_______________________________________________
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