Swipe over native scroller

J. Landman Gay jacque at hyperactivesw.com
Thu Jan 31 18:59:50 EST 2019


On 1/31/19 1:50 PM, J. Landman Gay via use-livecode wrote:
> But your script reminded me to check the scrollerEndDrag message. We 
> don't allow horizontal scroll, so I'll have to see if the message is 
> sent even if the scroll doesn't change. If so, that might work.

I ran a test stack on an Android device which logged scrolling-related 
messages to a field.

These messages are sent simultaneously:
   touchStart
   touchMove -- sent only once, not continuously while dragging

This is sent only if the touch ends precisely where it began:
   touchEnd -- so it can be used to detect taps if the user is careful

These are not sent at all:
   scrollerBeginDrag
   scrollerEndDrag

The analogous mouse messages are missing the same equivalents.

So basically it is impossible to do much of anything with a native 
scroller on Android except actual scrolling and detecting taps. When I 
first tested this years ago, the behavior was the same on iOS too; I'm 
not sure yet how it behaves there now.

https://quality.livecode.com/show_bug.cgi?id=21816

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




More information about the use-livecode mailing list