Skip to content

How to support fast scroll the content page? #21

Open
xhzengAIB opened this Issue Jun 15, 2014 · 17 comments

4 participants

@xhzengAIB

Hi! @gblancogarcia

How to support fast scroll the content page?

If fast sliding, emptying the contents page,improve users quickly achieve a goal.

Jack

@gblancogarcia
Owner

Hey @xhzengAIB,
Sorry for not answering before. I'm not sure what you mean. Could you explain in more detail?
Thanks,

@xhzengAIB

Hi! @gblancogarcia
It doesn't matter, I'm glad you can give a reply.
If I'm fast scroll GBInfiniteScrollView, now, I need to remove the page display content to achieve a good user experience.

look this app:
https://github.com/gblancogarcia/GBInfiniteScrollView/issues/15#issuecomment-44803294,
fast scroll the pages container. you will see that.

Jack

@gblancogarcia
Owner

So you have several UIViewControllers' views inside a GBInfiniteScrollView, don't you? And when you scroll fast you are not showing the UIViewControllers' views, is this right?

@xhzengAIB

@gblancogarcia
Yet! this right.
Jack

@gblancogarcia
Owner

Hi Jack,
Okay, I get it. So, What do you think should be the behaviour? Any thoughts?

@gblancogarcia
Owner

On a different topic, I love your app. Is it possible to know what custom control are you using for the lateral menu?

@xhzengAIB

@gblancogarcia
Hi!
I create the lateral menu on there(https://github.com/JackTeam/XHScrollMenu), I don't know how to do the content page, if fast scroll the content page on GBInfiniteScrollView, the content page will be not show UIViewControllers' views.

Jack

@xhzengAIB

@gblancogarcia

I'm in the - (void) scrollViewDidEndDecelerating: (UIScrollView *) scrollView tilePages work on this method.

In the - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView pageWillDisappear work on this method.

In the - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView pageDidAppear work on this method.

So if fast scroll the GBInfiniteScrollView not show some UIViewControllers' views,

@gblancogarcia
Owner

Do you mind to upload a demo project that shows this problem?

@xhzengAIB

Hi! @gblancogarcia
OK! I'm glad you can help. I just need some time to upload the demo for you.

Jack

@gblancogarcia
Owner

Hey, I have receive your demo project. So, What is the problem?

@cherishloveyou

I have the same problem. If scroll very fast,sometimes the content page shows delays or blank. I think the reason it our scroll data is not prepared.To due memory,we only prepare three pages of content。when scroll it very fast,the target position is always being in the calculation,only when scroll down,it begin to init data.In complex ViewController,it may cause delays or blank,This is my view。

@gblancogarcia
Owner

Hey,
I have just added this method to scroll a specific page:

/**
 * Scrolls a specific page.
 *
 *  @param index     Index of the page
 *  @param animated  YES if the scrolling should be animated, NO if it should be immediate.
 */
- (void)scrollToPageAtIndex:(NSUInteger)index animated:(BOOL)animated;

In the demo project you can find a example of use.
I hope it helps.
Cheers.

@xhzengAIB

Hi! @gblancogarcia

this is very cool, but i need fast scroll page on my finger. Do you know what I mean?

Jack

@gblancogarcia
Owner

Sorry, I think I misunderstand you 😅. I'll see what I can do.

@cherishloveyou

scroll it as fast as possible,not normal scroll,it's extreme testing! sometime it causes this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.