Swipe gestures on a mobile scroller
J. Landman Gay
jacque at hyperactivesw.com
Sun Nov 20 20:03:07 CET 2016
On 11/20/16 12:36 PM, Paul Hibbert wrote:
>> On Nov 19, 2016, at 8:06 PM, J. Landman Gay
>> <jacque at hyperactivesw.com> wrote:
>> I'm not sure how it could work, since the horizontal scroll of my
>> field is always zero. It doesn't scroll horizontally at all.
> The actual hScroll of the field isn’t set, only the vScroll is set in
> this example, but it can detect that you are attempting to scroll
> horizontally and so you can use that info to initiate a swipe.
> It is only a workaround implemented by intercepting the
> scrollerDidScroll message, you don’t need to ‘set' the scroll sent by
> the message, but you can detect it and use it to swipe.
Right, but does that mean the hscroll property of the mobile scroller
must be true? Right now mine's false so I assumed it wouldn't even try
to detect scrolling horizontally. I can change that setting of course.
But your solution and Scott's are very similar so it must work. I'll
experiment with both. Thanks for the ideas, both of you, but I sure wish
we could use a simple mouseUp to detect it. It would save a lot of trouble.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode