Mobile Scroller Advice

Brian Milby brian at milby7.com
Wed Apr 14 23:08:27 EDT 2021


Thanks to a little off list help from Jacque, I was able to get this
working.  Here's the key piece:

   wait 10 milliseconds -- Panos workaround, bug #18924
   mobileControlSet pName, "hScroll", the hScroll of control pName
   mobileControlSet pName, "vScroll", the vScroll of control pName

The workaround in the bug report actually says wait 0 ms, but I found that
I had to increase it a bit for it to work on my test Pixel (I didn't try to
see how low I could go though).  I'm replying to myself to put the
information out there in case someone is searching the archives.

Thanks all,
Brian

On Wed, Apr 14, 2021 at 12:43 PM Brian Milby <brian at milby7.com> wrote:

> 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