Swipe gestures on a mobile scroller
paul at livecode.org
Sun Nov 20 14:23:15 EST 2016
> On Nov 20, 2016, at 11:03 AM, J. Landman Gay <jacque at hyperactivesw.com <mailto:jacque at hyperactivesw.com>> wrote:
> does that mean the hscroll property of the mobile scroller must be true?
No, the hScroll prop is still false, you are just detecting and using (diverting) the information that the scrollerDidScroll message would have used to set the hScroll, but it never gets set.
This is the handler:
on scrollerDidScroll hOffset, vOffset // Scroll or Swipe Detect //
if the hScroll of group "scrollArea" <0 then ##-->> Detects the Horiz swipe <<--##
else if the hScroll of group "scrollArea" >0 then
set the vScroll of group "scrollArea" to vOffset ##-->> Scroll the field vertically <<—##
It is just a workaround, and it’s not perfect, but may keep you going until the main problem is fixed.
More information about the Use-livecode