iOS - sideways swiping within a vertically scrolling object?
Terry Judd
terry.judd at unimelb.edu.au
Sun Aug 19 02:07:11 EDT 2012
I have a vertically scrolling group (weekly timetable) and I like to be able to navigate backwards and forwards a week by swiping left or right within it. I can do this with a pair of touchstart/end scripts but unless the swipe is very horizontal the object scrolls and no touchstart or end messages are sent.
I've tried trapping the scrollerBeginDrag and scrollerEndDrag messages but there doesn't seem to be a reliable way to capture the 'mouse' coordinates within these messages so I can determine whether to count it is a horizontal swipe. The mouseH sometimes gives sensible values within a scrollerBeginDrag message and other times not - it never seems to return a sensible value in the scrollerEndDrag message.
Any ideas on a better way of tackling this?
Terry...
Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
More information about the use-livecode
mailing list