Scrolling text w/o scroll bars in iOS

Colin Holgate coiin at
Mon Mar 7 15:07:56 EST 2011

Try this on a field that is set to not show scrollbars, lock text, and not focusable:

local startscroll,startv

on mousedown
   put the scroll of me into startscroll
   put the mousev into startv
end mousedown

on mousestilldown
   set the scroll of me to startscroll - the mousev + startv
end mousestilldown

The scrolling is just to the nearest line, but it does what you asked. At least on my iPad it does!

More information about the use-livecode mailing list