Mobile Scroller Advice

Brian Milby brian at milby7.com
Wed Apr 14 12:43:17 EDT 2021


It starts zoomed out with the whole image showing.  A tap will zoom in about 25% each time until fully zoomed in (pixel match to display).  The idea is that the image will zoom from the center instead of from the top/left.  No transition effects are currently used.

At each size, the user can scroll around the entire image.  (It would actually be best to zoom around what is currently visible, but that is easy once I figure out the other piece.)

The issue is that if viewing a very wide panorama, then jumping to the left side isn’t very appealing.

Currently I do delete and recreate the scroller for each zoom, it just didn’t work right with the image centered in the group.

Thanks,
Brian

Sent from my iPhone

> On Apr 14, 2021, at 12:10 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I'm a little confused. Do you want the zoom to happen within a group with a scroller?
> 
> I've done this a different way. Delete any existing scroller, lock the screen, resize the image and its group, unlock the screen with a visual effect like zoom in or whatever. Then recreate the scroller at the new group size.
> 
> Is that what you're asking?
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>> On April 13, 2021 10:31:58 PM Brian Milby via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Greetings on this lovely Tuesday evening.  I'm in need of a little mobile
>> scroller wisdom.
>> 
>> I'm working on an app that runs on mobile devices (Apple and Android).  We
>> are presenting an image and have enabled the ability for the user to tap on
>> the image to zoom in.  Everything is working except the only way that I
>> have been able to get the scroller to work reliably is to place the image
>> at the top/left of the group.  What we would really like to do is keep the
>> image centered on the screen as it expands.
>> 
>> It may be totally obvious, but before I spend a bunch of time throwing
>> darts and hoping for a bullseye, I thought it would be good to at least ask
>> for a little help.
>> 
>> Thanks for any assistance you can provide,
>> Brian
>> _______________________________________________
>> 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
> 
> 
> 
> 
> _______________________________________________
> 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