Support => NGUI 3 Support => Topic started by: mixd on November 18, 2012, 07:02:31 PM
Title: iOS Scrolling Emulation
Post by: mixd on November 18, 2012, 07:02:31 PM
I would ask for this as a feature request, but I'll leave that up to Aren. Here is some code that anyone can drop in their project to make your scrolling windows feel more like native iOS scrolling. The change is subtle yet makes a huge improvement!
Title: Re: iOS Scrolling Emulation
Post by: ArenMook on November 18, 2012, 08:00:19 PM
Try your code with the framerate limit disabled (vsync off).
Title: Re: iOS Scrolling Emulation
Post by: mixd on November 19, 2012, 03:07:58 PM
Is this something you would consider adding and/or suggest the proper way to make this work? (Tried w/o vsync and it seemed ok but I was not sure what I was looking for)
Title: Re: iOS Scrolling Emulation
Post by: ArenMook on November 19, 2012, 04:12:46 PM
Ok I looked deeper into your changes. I misunderstood what happens originally. Looks fine to me, I'll integrate them into the main repo, thanks.
Title: Re: iOS Scrolling Emulation
Post by: nah0y on November 20, 2012, 10:04:13 AM
Hum, I've tried your code and it doesn't seem to do anything different with or without :s
Is it something really visible ??
Title: Re: iOS Scrolling Emulation
Post by: ArenMook on November 20, 2012, 03:41:51 PM
Took me a while to see the effect as well, nah0y. Try dragging the contents past the bounds. It halves the drag amount, making it seem like there is some resistance being applied.
Title: Re: iOS Scrolling Emulation
Post by: Nicki on November 20, 2012, 05:14:50 PM
This is excellent for iOS apps as we can match the native behavior better. Good job, mixd!
Title: Re: iOS Scrolling Emulation
Post by: nah0y on November 21, 2012, 12:14:52 PM
Nice !
Yup, closer but still not the same fluid feeling we have on an iOS list. And I don't think we will get near that using Unity (am I right ?).
PS : You're going to include this for the next release right ? :)
Title: Re: iOS Scrolling Emulation
Post by: ArenMook on November 21, 2012, 05:32:23 PM
Yeah, Pro users already have it in the repo.
Title: Re: iOS Scrolling Emulation
Post by: nah0y on November 21, 2012, 06:41:20 PM