scroller iPhone with bounce

BNig niggemann at uni-wh.de
Tue Dec 7 19:11:54 EST 2010


You would want to look at the scroller on a real device. The simulator does
not scroll. Forgot to mention that in the previous post.

regards
Bernd



BNig wrote:
> 
> I figured the scroller example in Livecode mobile 4.5.2 was not really
> complete so I set up the new scroller in a little stack: a list field with
> a bounce. The bounce was not obvious from the example so I hope this helps
> people to implement this. (look at the group "umscroll" with lockloc true
> and the list field)
> Almost all the code is in the card script. Except for a mouseUp handler in
> the list field to make the actual selection.
> 
> The new scroller is a very nice object that really makes things a lot
> easier. It scrolls very smoothly even on my slow iPhone 3G. Selection is a
> lot easier since the operating system takes a lot of guesswork out of when
> a touch is the begin of a scroll and when a touch is a selection.
> 
> There is one quirk in the current incarnation of the mobile engine:
> the scroll is really only starting to scroll if you slide the field up and
> then touch the network bar or whatever you call it. The top line of the
> screen where the battery is shown etc. This 'defrosts' the scrolling and
> from then on you can scroll and bounce like you expect it. Runrev is aware
> of the problem.
> 
> the zipped version of the stack:
> 
> http://berndniggemann.on-rev.com/scrolliPhone/lcMobileScroll_0.0.2.livecode.zip
> 
> regards
> 
> Bernd
> 
> 
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/scroller-iPhone-with-bounce-tp3077481p3077491.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list