iOS: Scrolling a native scroller via script problem

Alan Stenhouse alanstenhouse at hotmail.com
Mon Jul 21 06:23:00 EDT 2014


Gerry,

check out the dgVScroll property of datagrids - this will be what you want to set I believe.

HTH

cheers

Alan

On 21/07/2014, at 12:00 PM, use-livecode-request at lists.runrev.com wrote:

> I have a data grid that I'm scrolling in iOS using a native scroller.
> 
> I use this card script to scroll the data grid:
> 
> on scrollerDidScroll OffsetX, OffsetY
>  if   iphoneControlTarget() = "listScroller" then
>    set the vScroll of group "scroller" to OffsetY
>  end if
> end scrollerDidScroll
> 
> However, on opencard I manually scroll the scroller via script e.g.:
> 
> set the vScroll of group "scroller" to 2770
> 
> The problem is if the user then touches the scroller, the data grid
> jumps to a vScroll of 0.
> 
> Anyone have an idea why?
> 
> Gerry





More information about the use-livecode mailing list