Swipe gestures on a mobile scroller
terry.judd at unimelb.edu.au
Sun Nov 20 03:53:27 CET 2016
Hi Jacque - I struggled with this for ages on an iOS and android app earlier in the year (vertical scrolling content with side-to-side swiping for navigation (a la iCal). After trying a truckload of different approaches (hacks) I mostly got it to work on iOS (I still got intermittent failures) and I eventually gave up altogether on android and used left and right buttons instead. Things might have improved then but based on your experience it sounds unlikely. Happy to dig out my hacky iOS code if that helps but engine level fixes would be better.
Sent from my iPad
> On 20 Nov 2016, at 6:39 AM, J. Landman Gay <jacque at hyperactivesw.com> wrote:
>> On 11/19/16 2:18 AM, J. Landman Gay wrote:
>> I have a native mobile scroller handling the vertical scroll of a field.
>> I want to add swipe gestures to change cards. When swiping, I get a
>> mouseDown, sporadic mouseMoves (the logging might be interfering, not
>> sure, but after a couple they stop) and no mouseUp at all.
>> I tried using touchStart/touchMove/touchEnd instead and the result is
>> the same. TouchStart always fires, touchMove is iffy, and touchEnd never
>> Without the end message I can't calculate the direction. Plain taps work
>> fine with either set of messages, I do get mouseUp/touchEnd if it's a
>> tap. It's only swipes that don't report.
>> The scroller has its hScroll property set to false if that matters, as I
>> don't want horizontal scrolling but I do want to track the touch direction.
> The problem has apparently been around for quite some time:
> Anyone have a workaround?
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode