Swipe gestures on a mobile scroller

Paul Hibbert paul at livecode.org
Sun Nov 20 20:32:54 CET 2016


> On Nov 20, 2016, at 11:03 AM, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 
> does that mean the hscroll property of the mobile scroller must be true?

Just tried this simplified version and it works fine too:

on scrollerDidScroll hOffset, vOffset // Scroll Detect //
 
   if hOffset <0 then ##-->> Detects the Horiz swipe <<--##
      moveBack
   else if hOffset >0 then
      moveForward
   end if
   
   set the vScroll of group "scrollArea" to vOffset ##-->> Scroll the field vertically <<—##

end scrollerDidScroll



More information about the use-livecode mailing list