11-13-2012 04:36 PM
Thanks Dustin! I look forward to trying this out sometime soon and getting back to you with how I make out.
11-14-2012 10:01 PM - edited 11-14-2012 11:25 PM
At least the first example works. However, no matter what I try, I can't get a Container to scroll horizontally.
I've tried setting the scroll direction to ScrollDirection.BOTH and ScrollDirection.HORIZONTAL. I've tried using scrollToX and scrollX. Nothing seems to work.
I finally figured it out. If you want a Container to scroll horizontally, you have two options:
1) Use a GridLayout
2) Use a RowLayout and set its type to RowLayoutType.VERTICAL. Seems a bit antithetical, but I'm sure there's a reason for it.
12-01-2012 10:39 PM
Dustin, I finally got around to trying your sample code tonight and it worked, thanks. Perhaps the key is waiting until the added to stage event fires before laying things out?
One minor disappointment is scrolling FPS. I have a single label on the screen, and an image behind it (not in the container), and an action bar at the bottom. My label is about 3 screens high. Scrolling performance doesn't seem to be anywhere near 60 fps
12-02-2012 09:22 AM
12-29-2012 05:18 PM
In addition to my previous reply about terrible scrolling performance (about 15 fps), the scrolling isn't actually working dependably for me.
It's super glitchy. Sometimes when I swipe my finger, it scrolls. Sometimes it just "bounces back" when I release my finger. Sometimes when I scroll to the end, it gets stuck there and just keeps bouncing back when I try and scroll up. Sometimes when I scroll up, it goes 90% of the way, but then gets "stuck" again before making it to the top.
I can madly keep scrolling and then sometimes, randomly, it will "release" and let it scroll back up to the top, etc.
It would be pretty embarassing releasing my Help screen to users like this.
12-30-2012 05:54 PM
Could it be that your text field is selectable or anything else in front intercepting the mouse events? I use read-only TLF text inside a container as content for the scrolling container, and it scrolls pretty smoothly and certainly reliably.
My app : Get set - Get up! Get ready for the snooze revolution.