Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7541803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:59:26+00:00 2026-05-30T07:59:26+00:00

I am currently working on a single page web app optimized for touch devices,

  • 0

I am currently working on a single page web app optimized for touch devices, mainly iOS. I’ve implemented the new iOS native scrolling via -webkit-overflow-scrolling: touch; and all works well except that we are still experiencing the apple elastic scroll effect on the whole page body.

This involves the whole page moving off the top/bottom of the viewport when a scroll ends or the body is pushed and really gives away the fact that this is a web app. I have followed various guidelines on how to prevent this and while they do work, they prevent inner scrollable elements from working altogether.

Here’s a fiddle to demonstrate what I’m using so far.

Has anyone found a solution that disables body elastic scrolling but lets inner scrollables work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:59:28+00:00Added an answer on May 30, 2026 at 7:59 am

    I’ve adapted the good solution from Conditionally block scrolling/touchmove event in mobile safari using Dojo:

    var initialY = null;
    dojo.connect(document, 'ontouchstart', function(e) {
        initialY = e.pageY;
    });
    dojo.connect(document, 'ontouchend', function(e) {
        initialY = null;
    });
    dojo.connect(document, 'ontouchcancel', function(e) {
        initialY = null;
    });
    dojo.connect(document, 'ontouchmove', function(e) {
        if(initialY !== null) {
            if(!dojo.query(e.target).closest('#content')[0]) {
                // The element to be scrolled is not the content node
                e.preventDefault();
                return;
            }
    
            var direction   = e.pageY - initialY;
            var contentNode = dojo.byId('content');
    
            if(direction > 0 && contentNode.scrollTop <= 0) {
                // The user is scrolling up, and the element is already scrolled to top
                e.preventDefault();
            } else if(direction < 0 && contentNode.scrollTop >= contentNode.scrollHeight - contentNode.clientHeight) {
                // The user is scrolling down, and the element is already scrolled to bottom
                e.preventDefault();
            }
        }
    });
    

    The element to be scrolled is #content in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working with a Single Sign On provider to do a web app
I'm working on a relatively simple website with (currently) a single resource. I have
I'm currently working on creating a new C# project that needs to interact with
I have a strange problem on a web page I'm working with. I have
Background: I am an intermediate web app developer working on the .Net Platform. Most
I'm writing a little single page app (using knockout.js :-)) whereby i have a
I am working on a mobile web app that is primarily self-contained and communicated
i'm currently working on a tumblr theme, but got stuck on the page navigation.
Currently working in the deployment of an OFBiz based ERP, we've come to the
Currently working on a VBScript to automate some of the dirty PST ingestion work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.