Welcome,
Guest
. Please
login
or
register
.
September 16, 2024, 07:31:45 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIWrapContent catches up slowly when the scrolling speed is high
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIWrapContent catches up slowly when the scrolling speed is high (Read 3501 times)
rain
Jr. Member
Thank You
-Given: 2
-Receive: 4
Posts: 79
UIWrapContent catches up slowly when the scrolling speed is high
«
on:
September 23, 2014, 07:09:48 AM »
Hi!
I've put together a vertical UIScrollView and a UIWrapContent with a list of over 1000 items (with 10 gameobjects actually existing at a time) and I've noticed that if I used SpringPanel to get from the bottom of the list to the top of the list, the items lag behind the scrollview and sometimes don't catch up to the scrollview at all.
Can this issue be solved or do I have to look for another approach for this kind of thing?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #1 on:
September 23, 2014, 12:23:43 PM »
You likely need to add more active items, like 20 objects at a time. If you scroll quickly, you effectively go past the available bounds, so past your 10 objects, which limits the movement.
Logged
rain
Jr. Member
Thank You
-Given: 2
-Receive: 4
Posts: 79
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #2 on:
September 24, 2014, 04:38:58 AM »
Went up to 60 objects and decreasing the springpanel strength to 2. Still having the issue when scrolling down to the 2000. element or below.
Any ideas?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #3 on:
September 24, 2014, 02:30:00 PM »
Can't say I have another suggestion. Question though, why do you need to SpringPanel through 2000 elements?
Logged
rain
Jr. Member
Thank You
-Given: 2
-Receive: 4
Posts: 79
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #4 on:
September 25, 2014, 04:11:46 AM »
It's for a music picker screen where you can tap the top of the screen to get to the top of the list and access the searchbar, and users might have up to 10-20000 tracks that could be chosen from the list.
«
Last Edit: September 25, 2014, 07:57:19 AM by rain
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #5 on:
September 25, 2014, 07:38:20 PM »
I suggest you go to the top immediately, not smoothly.
Logged
rain
Jr. Member
Thank You
-Given: 2
-Receive: 4
Posts: 79
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #6 on:
September 26, 2014, 05:19:46 AM »
The whole point of this would be to simulate the iOS-style "spring to top" feature
Logged
andreyd
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 18
Re: UIWrapContent catches up slowly when the scrolling speed is high
«
Reply #7 on:
October 03, 2014, 11:52:37 AM »
Quote from: rain on September 26, 2014, 05:19:46 AM
The whole point of this would be to simulate the iOS-style "spring to top" feature
We've actually had to write our own version of UITable that repopulates content based on visibility every frame. The problem here is that it uses index based approach. We had the problem as we wanted to have sections of content which could be tapped and scrolled to the top of section content. We had to use our own pooling mechanism where we would know the position of the cell based on the real section and cell index and see if it is visible, then repopulate it.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIWrapContent catches up slowly when the scrolling speed is high