[mobile] how to implement side-to-side swiping of a vertically scrolling group
J. Landman Gay
jacque at hyperactivesw.com
Mon Jun 3 14:22:08 EDT 2013
On 5/31/13 11:03 PM, Terry Judd wrote:
> I have a vertical scrolling group (day-per-view calendar object) that
> I want to be able to navigate back or forwards a day by using a
> horizontal swipe. I have this working reasonably well but because the
> group is scrolling the swipe needs to be more or less perfectly
> horizontal otherwise the group scrolls and the swipe is bypassed. Has
> anyone successfully implemented something like this?
I think you'll need to compare the difference between horizontal and
vertical offsets, and scroll depending on which is larger. Store the
mouseloc on mousdown, and then calculate both H and V distances on mouseup.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list