Touch listeners (which block scrolling), or stick the entire page in a 100vw/vh Developers end up writing unnecessary JavaScript, add The unfortunate part is that this type of customization has been There'sĪlso the potential to see a double refresh animation! Alternatively, it mightīe nicer to customize the browser's action, aligning it more closely to the site'sīranding.
Why? In thisĪpp, you probably don't want the user accidentally refreshing the page. It might make sense to disable the native pull-to-refresh action. Swiping down at the top of the page refreshes the entire page:Ĭhrome Android's native pull-to-refresh action
#Mark of the ninja the inner keep scrolls android#
In fact, this particular UX hasīecome so popular that mobile browsers like Chrome on Android have adopted Space for more recent posts to be loaded. Pulling down on a social feed and releasing creates new Pull-to-refresh is an intuitive gesture popularized by mobile apps such asįacebook and Twitter. Provide a different user experience when the user hits a scroll boundary. Sometimes it's not desirable or even unexpected. Oftentimes the default is pretty nice, but Turns out this behavior is called scroll chaining the browser's defaultīehavior when scrolling content. Taken over by the parent container the main page itself in the example. The content behind the drawer starts scrolling! Scrolling is But notice what happens if the user continues to Overflow container stops scrolling because there's no more content to consume. Items that the user may have to scroll through. As an example, take an app drawer with a large number of Scrolling is one of the most fundamental ways to interact with a page, butĬertain UX patterns can be tricky to deal with because of the browser's quirkyĭefault behaviors. It's in development or beingīackground Scroll boundaries and scroll chaining Scroll chaining on Chrome Android. Use cases include disabling the pull-to-refreshįeature on mobile, removing overscroll glow and rubberbanding effects,Īnd preventing page content from scrolling when it's beneath a modal/overlay. The CSS overscroll-behavior property allows developers to override theīrowser's default overflow scroll behavior when reaching the top/bottom ofĬontent.