framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Scroll Bounce and Pull to refresh

Open zacksiri opened this issue 12 years ago • 19 comments

Hey

First of all I have to say this is simply amazing. its basically the best HTML5 framework for building iOS apps. simply brilliant.

I was wondering if it was possible to do scroll bounce and pull to refresh like the native apps have?

zacksiri avatar Mar 26 '14 05:03 zacksiri

Hey Thanks, i know that it is highly required feature, but because F7 uses native scrolling it is not so simple to make it. But hopefully i'll release such feature on a week

nolimits4web avatar Mar 26 '14 11:03 nolimits4web

i understand, i think native scrolling is important though more than JS scrolling. i wouldn't use JS scrolling just so i can have scroll bounce and pull to load. maybe it should be a module so we can choose JS scroll on certain views and native on certain views? what do you think?

On Mar 26, 2014, at 6:57 PM, Vladimir Kharlampidi [email protected] wrote:

Hey Thanks, i know that it is highly required feature, but because F7 uses native scrolling it is not so simple to make it. But hopefully i'll release such feature on a week

— Reply to this email directly or view it on GitHub.

zacksiri avatar Mar 26 '14 17:03 zacksiri

Any JS scroll will be not so cool as native one, and could produce a lot of problems. I want to realize it with native scrolling:)

nolimits4web avatar Mar 26 '14 17:03 nolimits4web

Ok, it is done, need to cleanup code a bit and hopefully will release it today

nolimits4web avatar Mar 27 '14 13:03 nolimits4web

holy crap, wow! that was fast!

On Mar 27, 2014, at 8:13 PM, Vladimir Kharlampidi [email protected] wrote:

Ok, it is done, need to cleanup code a bit and hopefully will release it today

— Reply to this email directly or view it on GitHub.

zacksiri avatar Mar 27 '14 14:03 zacksiri

can't wait for it, great job! :+1:

zirkler avatar Mar 27 '14 15:03 zirkler

Ok guys, it is there!:) Here is an updated live demo http://idangero.us/framework7/kitchen-sink/ , look for appropriate link. And don't forget to clean cache

nolimits4web avatar Mar 27 '14 18:03 nolimits4web

Wow! That is VERY slick! Great job!

ptb avatar Mar 27 '14 23:03 ptb

its perfect!

On Mar 28, 2014, at 6:19 AM, ptb [email protected] wrote:

Wow! That is VERY slick! Great job!

— Reply to this email directly or view it on GitHub.

zacksiri avatar Mar 28 '14 07:03 zacksiri

Thanks guys, but i still see some issues. If page is long (with scrolling) that sometimes when we release it to refresh, page is blinking/flashing, do you see this? On iPhone it is rare but as see on iPad 2 it is really annoing

nolimits4web avatar Mar 28 '14 08:03 nolimits4web

Yep i can confirm this. I took a video of my screen and watched it in slow motion to understand the animation, it looks like after pulling, the whole list snaps back to the top, then it immediately snaps a little bit back down to display the loading circle.

zirkler avatar Mar 28 '14 13:03 zirkler

Ok, it is fixed now. Seems like iOS bug, when we try to change opacity (like on arrow and preloader) during scrolling it does some kind of repaint that produce this blinking. Changing opacity to visibility seems to fix it

nolimits4web avatar Mar 28 '14 15:03 nolimits4web

Hi! This feature is available at the moment?I did not find an example of it. How to enable it?

jeka5555 avatar Jun 24 '15 11:06 jeka5555

@jeka5555 http://www.idangero.us/framework7/docs/pull-to-refresh.html

nolimits4web avatar Jun 24 '15 12:06 nolimits4web

Hi! I mean Scroll Bounce. To scroll in android works on both iphone. Thanks!

jeka5555 avatar Jul 03 '15 11:07 jeka5555

@jeka5555 F7 uses native scrolling, Android just doesn't have it

nolimits4web avatar Jul 03 '15 14:07 nolimits4web

Can not be made to work more smoothly it? It is too sharp, and when you scroll a little twitch pictures

jeka5555 avatar Jul 03 '15 14:07 jeka5555

Is there a option just for scrolling with bounce (without refresh action) like iOS has on all pages? Maybe I just cannot find it?

I using iScroll plug-in, but it would be grate if I could ditch that.

justradojko avatar Aug 16 '15 08:08 justradojko

This works well with current Framework7 version to eliminate the bounce effect:

    1. Download https://github.com/lazd/iNoBounce/blob/master/inobounce.min.js
    1. Include script <script type="text/javascript" src="js/inobounce.min.js"></script>
    1. Add css to .views container
.views {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

scriptPilot avatar Oct 24 '16 18:10 scriptPilot