Native Livecode Pinch and Zoom

Devin Asay devin_asay at
Wed Jul 12 11:43:13 EDT 2017

On Jul 12, 2017, at 8:40 AM, Sannyasin Brahmanathaswami via use-livecode <use-livecode at<mailto:use-livecode at>> wrote:

It appears we won't get pinch and zoom in the browser widget on mobile. It's back to using a native LC interface for a big map adventure where the user can zoom into an area and then pinch back out

The use case is still the same: use a "Maha" = enormous/big SVG graphic that looks awesome and sharp at any zoom level

Hopefully, soon LC will support a native display of this.

In the meantime, before I go hacking away from ground zero, trying to trap gestures and changing the rect of the image object on the fly… I would be interested in any example of this that anyone has already done using native LC code.
The zoom of player to degrees is deprecated, and we are not seeing any alternatives in the dictionary.

There is an obscure something that I just found that only works on Mac and windows:

XPDFViewer_Zoom viewerName, {"width" | "fit" | "actual" | "in" | "out" | percent}

The magnify extension is only on desktop

Any hope for us on Mobile for pinch and zoom in and out?


I put together a tutorial for my students on how to implement pinch gestures with images. It is in turn adapted from a LiveCode Ltd tutorial on pinch gestures. It might be a good starting point for your project.



Devin Asay
Office of Digital Humanities
Brigham Young University

More information about the Use-livecode mailing list