Mouse messages in scrollers
jmac at consensustech.com
Tue May 19 18:08:06 EDT 2020
I don't have an answer and hope someone else does. I hate my workaround.
My workaround is to leave a space on either side of the field (45 px or so.. haven't tried to minimize).
After the user gets frustrated enough, they end to do a swipe near the edge of the screen (across the blank space and not starting in the field) and that I can trap for and make work.
Once they’ve done it once or twice, they routinely go to the edge of the screen to swipe and it becomes natural.
> On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> 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
> 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