Re: Mouse messages in scrollers
Ack! I replied without fully grokking what you wrote. I will revisit this and look at storing them on mouseDown. Thank you! — Scott > On Sep 20, 2020, at 7:00 PM, scott--- via use-livecode > wrote: > > Unfortunately, I did not make any further progress on this one. Stumped. > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email sc...@elementarysoftware.com > booth1-360-734-4701 > -- > >> On Sep 20, 2020, at 1:17 PM, J. Landman Gay via use-livecode >> wrote: >> >> Scott, did you ever figure this out? When are you capturing the mouse >> locations? If I remember right, they are accurate if you store them on >> mouseDown. >> >> I meant to reply sooner but the email got lost in a barrage for a while. >> >> >> On 9/15/20 8:30 PM, scott--- via use-livecode wrote: >>> on mobile (just iOS at the moment) I’m trying to not only register a >>> horizontal swipe in a UIScroller but to calculate the line in the field >>> under the scroller so that I can perform a delete action. I can get the >>> swipe but… while these calculations seem to work fairly well in the IDE, >>> not so much in the simulator. both the mouseH and the mouseLoc report a >>> value but when I check it during scrollerDidScroll the X value is always 0 >>> and the Y value is always the bottom of the screen… which of course is not >>> particularly helpful. Am I doing something wrong or is this just not >>> available when a scroller is under the “mouse”? Setting delayTouches and >>> canCancelTouches to false doesn’t appear to change anything. >> >> >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
Unfortunately, I did not make any further progress on this one. Stumped. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com booth1-360-734-4701 -- > On Sep 20, 2020, at 1:17 PM, J. Landman Gay via use-livecode > wrote: > > Scott, did you ever figure this out? When are you capturing the mouse > locations? If I remember right, they are accurate if you store them on > mouseDown. > > I meant to reply sooner but the email got lost in a barrage for a while. > > > On 9/15/20 8:30 PM, scott--- via use-livecode wrote: >> on mobile (just iOS at the moment) I’m trying to not only register a >> horizontal swipe in a UIScroller but to calculate the line in the field >> under the scroller so that I can perform a delete action. I can get the >> swipe but… while these calculations seem to work fairly well in the IDE, not >> so much in the simulator. both the mouseH and the mouseLoc report a value >> but when I check it during scrollerDidScroll the X value is always 0 and the >> Y value is always the bottom of the screen… which of course is not >> particularly helpful. Am I doing something wrong or is this just not >> available when a scroller is under the “mouse”? Setting delayTouches and >> canCancelTouches to false doesn’t appear to change anything. > > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
Scott, did you ever figure this out? When are you capturing the mouse locations? If I remember right, they are accurate if you store them on mouseDown. I meant to reply sooner but the email got lost in a barrage for a while. On 9/15/20 8:30 PM, scott--- via use-livecode wrote: on mobile (just iOS at the moment) I’m trying to not only register a horizontal swipe in a UIScroller but to calculate the line in the field under the scroller so that I can perform a delete action. I can get the swipe but… while these calculations seem to work fairly well in the IDE, not so much in the simulator. both the mouseH and the mouseLoc report a value but when I check it during scrollerDidScroll the X value is always 0 and the Y value is always the bottom of the screen… which of course is not particularly helpful. Am I doing something wrong or is this just not available when a scroller is under the “mouse”? Setting delayTouches and canCancelTouches to false doesn’t appear to change anything. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
on mobile (just iOS at the moment) I’m trying to not only register a horizontal swipe in a UIScroller but to calculate the line in the field under the scroller so that I can perform a delete action. I can get the swipe but… while these calculations seem to work fairly well in the IDE, not so much in the simulator. both the mouseH and the mouseLoc report a value but when I check it during scrollerDidScroll the X value is always 0 and the Y value is always the bottom of the screen… which of course is not particularly helpful. Am I doing something wrong or is this just not available when a scroller is under the “mouse”? Setting delayTouches and canCancelTouches to false doesn’t appear to change anything. — Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com booth1 360 734 4701 > On May 21, 2020, at 1:22 PM, J. Landman Gay via use-livecode > wrote: > > It was "delayTouches" mostly. Default is true, I had to set it to false. I > also set canCancelTouches to false but didn't test how necessary that was. > Default for that is also true. > > This allowed messages to pass through to LC, but you had to very deliberately > swipe, holding down a moment so the mouseDown would fire. Brian Milby came up > with a faster solution using something like Jim MacConnell's suggestion -- > make the contentRect wider than the group so that a horizontal swipe triggers > scrollerDidScroll. Lock direction to vertical to prevent wiggle. That proved > to be a the solution for a more natural swipe. > > You have to branch for Android because it doesn't have a lockDirection > property; for that OS keep the contentRect the same width as the group. Mouse > messages pass through to LC automatically, which is good because the above > two settings don't exist on Android. > > Swiping is such a normal behavior on mobile, I'd like to see an easier method > in LC to accomodate all this. > > > On 5/19/20 8:00 PM, scott--- via use-livecode wrote: >> You have probably already looked at these but here are (some of) the >> scroller settings I use for the below-mentioned field: >> >> mobileControlSet sScrollerId, "pagingEnabled", "false" >> mobileControlSet sScrollerId, "decelerationRate", "normal" -- fast --iOS only >> mobileControlSet sScrollerId, "canScrollToTop", "true" >> mobileControlSet sScrollerId, "delayTouches", "false" >> mobileControlSet sScrollerId, "canCancelTouches", “true" > > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
Thank you for the thorough explanation of what you are doing and why. I will give the method that triggers “scrollerDidScrol” a try. -- Scott > On May 21, 2020, at 1:22 PM, J. Landman Gay via use-livecode > wrote: > > It was "delayTouches" mostly. Default is true, I had to set it to false. I > also set canCancelTouches to false but didn't test how necessary that was. > Default for that is also true. > > This allowed messages to pass through to LC, but you had to very deliberately > swipe, holding down a moment so the mouseDown would fire. Brian Milby came up > with a faster solution using something like Jim MacConnell's suggestion -- > make the contentRect wider than the group so that a horizontal swipe triggers > scrollerDidScroll. Lock direction to vertical to prevent wiggle. That proved > to be a the solution for a more natural swipe. > > You have to branch for Android because it doesn't have a lockDirection > property; for that OS keep the contentRect the same width as the group. Mouse > messages pass through to LC automatically, which is good because the above > two settings don't exist on Android. > > Swiping is such a normal behavior on mobile, I'd like to see an easier method > in LC to accomodate all this. > > > On 5/19/20 8:00 PM, scott--- via use-livecode wrote: >> You have probably already looked at these but here are (some of) the >> scroller settings I use for the below-mentioned field: >> >> mobileControlSet sScrollerId, "pagingEnabled", "false" >> mobileControlSet sScrollerId, "decelerationRate", "normal" -- fast --iOS only >> mobileControlSet sScrollerId, "canScrollToTop", "true" >> mobileControlSet sScrollerId, "delayTouches", "false" >> mobileControlSet sScrollerId, "canCancelTouches", “true" > > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
It was "delayTouches" mostly. Default is true, I had to set it to false. I also set canCancelTouches to false but didn't test how necessary that was. Default for that is also true. This allowed messages to pass through to LC, but you had to very deliberately swipe, holding down a moment so the mouseDown would fire. Brian Milby came up with a faster solution using something like Jim MacConnell's suggestion -- make the contentRect wider than the group so that a horizontal swipe triggers scrollerDidScroll. Lock direction to vertical to prevent wiggle. That proved to be a the solution for a more natural swipe. You have to branch for Android because it doesn't have a lockDirection property; for that OS keep the contentRect the same width as the group. Mouse messages pass through to LC automatically, which is good because the above two settings don't exist on Android. Swiping is such a normal behavior on mobile, I'd like to see an easier method in LC to accomodate all this. On 5/19/20 8:00 PM, scott--- via use-livecode wrote: You have probably already looked at these but here are (some of) the scroller settings I use for the below-mentioned field: mobileControlSet sScrollerId, "pagingEnabled", "false" mobileControlSet sScrollerId, "decelerationRate", "normal" -- fast --iOS only mobileControlSet sScrollerId, "canScrollToTop", "true" mobileControlSet sScrollerId, "delayTouches", "false" mobileControlSet sScrollerId, "canCancelTouches", “true" -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
You have probably already looked at these but here are (some of) the scroller settings I use for the below-mentioned field: mobileControlSet sScrollerId, "pagingEnabled", "false" mobileControlSet sScrollerId, "decelerationRate", "normal" -- fast --iOS only mobileControlSet sScrollerId, "canScrollToTop", "true" mobileControlSet sScrollerId, "delayTouches", "false" mobileControlSet sScrollerId, "canCancelTouches", “true" — Scott > On May 19, 2020, at 4:41 PM, J. Landman Gay via use-livecode > wrote: > > I'm doing something very similar but the problem is that I don't get any > mouse or touch messages at all, which is why I'm thinking it must be the > settings for my ios scroller. > > Whatever the defaults are for delayTouches and canCancelTouches, I think at > least one of them needs to be changed. > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On May 19, 2020 5:39:07 PM scott--- via use-livecode > wrote: > >> Of course I forgot to declare the local and global variables... >> >> global gHorizontalSwipeDistance >> global gVerticalSwipeDistance >> local lMouseStartV >> local lMouseStartH >> >>> On May 19, 2020, at 3:20 PM, scott--- via use-livecode >>> wrote: >>> >>> I’m using this script on iOS directly inside a LC field object in order to >>> get a "delete button” to appear. (Ya, I know that is pretty ancient UI) But >>> it requires a swipe on iOS which is what you are after. I don’t think it is >>> responsive enough to do some of the fancy pushes that differentiate between >>> showing and sending things. It has been a long time since I worked on this >>> (and I chopped out a lot of code) so it is possible that I’ve missed >>> something. FYI: the field is a “List” field. >>> >>> >>> -- I use these values for swiping >>> put 40 into gHorizontalSwipeDistance >>> put 15 into gVerticalSwipeDistance >>> >>> -- I'm assuming the list behavior of the field needs to be true >>> -- field script >>> >>> on touchStart pID >>> put the mouseV into lMouseStartV >>> put the mouseH into lMouseStartH >>> -- some actions night need to go here >>> end touchStart >>> >>> >>> on touchMove pTouchID, pTouchH, pTouchV >>> -- see if there was a swipe for delete >>> if ((abs(pTouchH - lMouseStartH) > gHorizontalSwipeDistance)) AND\ >>> (abs(pTouchV - lMouseStartV) < gVerticalSwipeDistance) then >>> -- they swiped >>> -- unhilite the line >>> set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty >>>-- do stuff here >>> end touchMove >>> >>> >>> on touchRelease pID >>> -- unhilite the line >>> set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty >>> end touchRelease >>> >>> — >>> Scott Morrow >>> >>> Elementary Software >>> (Now with 20% less chalk dust!) >>> web https://elementarysoftware.com/ >>> email sc...@elementarysoftware.com >>> booth1-800-615-0867 >>> -- >>> >>> On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode 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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
I'm doing something very similar but the problem is that I don't get any mouse or touch messages at all, which is why I'm thinking it must be the settings for my ios scroller. Whatever the defaults are for delayTouches and canCancelTouches, I think at least one of them needs to be changed. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 19, 2020 5:39:07 PM scott--- via use-livecode wrote: Of course I forgot to declare the local and global variables... global gHorizontalSwipeDistance global gVerticalSwipeDistance local lMouseStartV local lMouseStartH On May 19, 2020, at 3:20 PM, scott--- via use-livecode wrote: I’m using this script on iOS directly inside a LC field object in order to get a "delete button” to appear. (Ya, I know that is pretty ancient UI) But it requires a swipe on iOS which is what you are after. I don’t think it is responsive enough to do some of the fancy pushes that differentiate between showing and sending things. It has been a long time since I worked on this (and I chopped out a lot of code) so it is possible that I’ve missed something. FYI: the field is a “List” field. -- I use these values for swiping put 40 into gHorizontalSwipeDistance put 15 into gVerticalSwipeDistance -- I'm assuming the list behavior of the field needs to be true -- field script on touchStart pID put the mouseV into lMouseStartV put the mouseH into lMouseStartH -- some actions night need to go here end touchStart on touchMove pTouchID, pTouchH, pTouchV -- see if there was a swipe for delete if ((abs(pTouchH - lMouseStartH) > gHorizontalSwipeDistance)) AND\ (abs(pTouchV - lMouseStartV) < gVerticalSwipeDistance) then -- they swiped -- unhilite the line set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty -- do stuff here end touchMove on touchRelease pID -- unhilite the line set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty end touchRelease — Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com booth1-800-615-0867 -- On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode 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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
Of course I forgot to declare the local and global variables... global gHorizontalSwipeDistance global gVerticalSwipeDistance local lMouseStartV local lMouseStartH > On May 19, 2020, at 3:20 PM, scott--- via use-livecode > wrote: > > I’m using this script on iOS directly inside a LC field object in order to > get a "delete button” to appear. (Ya, I know that is pretty ancient UI) But > it requires a swipe on iOS which is what you are after. I don’t think it is > responsive enough to do some of the fancy pushes that differentiate between > showing and sending things. It has been a long time since I worked on this > (and I chopped out a lot of code) so it is possible that I’ve missed > something. FYI: the field is a “List” field. > > > -- I use these values for swiping > put 40 into gHorizontalSwipeDistance > put 15 into gVerticalSwipeDistance > > -- I'm assuming the list behavior of the field needs to be true > -- field script > > on touchStart pID > put the mouseV into lMouseStartV > put the mouseH into lMouseStartH > -- some actions night need to go here > end touchStart > > > on touchMove pTouchID, pTouchH, pTouchV > -- see if there was a swipe for delete > if ((abs(pTouchH - lMouseStartH) > gHorizontalSwipeDistance)) AND\ > (abs(pTouchV - lMouseStartV) < gVerticalSwipeDistance) then > -- they swiped > -- unhilite the line > set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty > -- do stuff here > end touchMove > > > on touchRelease pID > -- unhilite the line > set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty > end touchRelease > > — > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email sc...@elementarysoftware.com > booth1-800-615-0867 > -- > > >> On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode >> 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 | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
I’m using this script on iOS directly inside a LC field object in order to get a "delete button” to appear. (Ya, I know that is pretty ancient UI) But it requires a swipe on iOS which is what you are after. I don’t think it is responsive enough to do some of the fancy pushes that differentiate between showing and sending things. It has been a long time since I worked on this (and I chopped out a lot of code) so it is possible that I’ve missed something. FYI: the field is a “List” field. -- I use these values for swiping put 40 into gHorizontalSwipeDistance put 15 into gVerticalSwipeDistance -- I'm assuming the list behavior of the field needs to be true -- field script on touchStart pID put the mouseV into lMouseStartV put the mouseH into lMouseStartH -- some actions night need to go here end touchStart on touchMove pTouchID, pTouchH, pTouchV -- see if there was a swipe for delete if ((abs(pTouchH - lMouseStartH) > gHorizontalSwipeDistance)) AND\ (abs(pTouchV - lMouseStartV) < gVerticalSwipeDistance) then -- they swiped -- unhilite the line set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty -- do stuff here end touchMove on touchRelease pID -- unhilite the line set the hilitedLine of fld "ScrollingList" of cd "ListOfLists" to empty end touchRelease — Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com booth1-800-615-0867 -- > On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode > 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 | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
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. Jim > On May 19, 2020, at 2:21 PM, J. Landman Gay via use-livecode > 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 | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mouse messages in scrollers
Would the problem be due to the settings for canCancelTouches and delayTouches? What are the defaults? And what behaviors do they control exactly? I can't quite figure out what the dictionary is saying. On 5/19/20 4:21 PM, J. Landman Gay via use-livecode 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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Mouse messages in scrollers
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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode