Mouse messages in scrollers

J. Landman Gay jacque at hyperactivesw.com
Tue May 19 17:21:39 EDT 2020


I have a tall field inside a shorter group that uses a mobile scroller. A behavior assigned to 
the group handles the scrolling and checks for swipes by capturing mouseDown and mouseUp to 
determine touch locations so it can calculate the direction of the swipe. This works on Android.

On iOS I do not get mouseUp or mouseDown messages when swiping horizontally, though I do get 
scrolerDidScroll when swiping vertically. But since the group is exactly as wide as the field 
it encloses, it does not scroll horizontally and so no scrollerDidScroll message is sent. I 
also do not get scrollerBegin/EndDrag, touchStart or touchEnd, or any other message I can think 
of to track a horizontal swipe. I do get mouseUp/Down when tapping on the scroller but that 
doesn't help here.

How would I detect a horizontal swipe on a non-moving scroller? The user can't navigate without it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list