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 9012259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:57:00+00:00 2026-06-16T02:57:00+00:00

The Problem: I have a web application on the iOS homescreen so there is

  • 0

The Problem:

I have a web application on the iOS homescreen so there is no browser window and it looks and functions very well. I’ve figured out how to make inner div elements do the touch scrolling events and use the momentum/bounce style in iOS, and that works perfectly… the issue I run into now is that the bounce scrolling (again, iOS-only) is messing up any fixed elements or site-related animations I have on the page.

When I try the following:

document.ontouchmove = function(e) {e.preventDefault()};

The issue stops, but now I can’t scroll anywhere on my application.

What I Need:

I want the body to be completely locked in place… If someone grabs, say, my sidebar or navbar and then pulls on the page, the body bounces! But if someone is inside the content area, there is no issue at all–the application scrolls flawlessly and looks great. If I stop scrolling on the sidebar or navbar or body, all scrolling in the application will not working and is essentially nonfunctional.

tl;dr: Body bounces on scroll. I want a scrolling content area and no scroll anywhere else. The body should NEVER move, but elements I deem scrollable within the body should.

As a sidenote, I’ve browser the following popular questions/solutions posted (among many others):

1
2
3

I just wanted to post that up before people assumed I didn’t do any searching… I’ve been at this for hours now and have seen even more solutions than posted above, but I wanted to get the most popular ones listed above so no one thought this was a duplicate question.

  • 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-06-16T02:57:02+00:00Added an answer on June 16, 2026 at 2:57 am

    I figured this out a few days ago and have this handy jsbin set up to demonstrate what I did to make this work:

    My Working jsbin Example

    When you open this link on an iPad, the text should be scrollable. Try tugging around the rest of the screen when there is no current touchmove event currently working.

    If you play around with it, you’ll notice that only the inner textfield moves as expected. This is determined by putting my .scrollable class within the .container class. The .scrollable class takes up the full height of it’s parent container.

    Now make the container a larger height, like height: 500px. The goal here is to make it large enough to have no overflow yet small enough to have other whitespace on the iPad still. Try scrolling it or pulling it… No touchmove events are fired and the screen stays in place.

    My JS determines if an object has overflow after being touched. If it does, it scrolls. If it does not, it does not send a scroll event.

    Play with it and let me know if I can provide any better examples and also if you run into any bugs… Right now the only one I know of is if you’re really trying to break it and start tugging around the site while a current touchmove event is being fired, or the page is first loading… I wouldn’t count those as “bugs”, but if you can find a fix for those too, I’m all ears!

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

Sidebar

Related Questions

I am working on a small Java EE web application. The problem I have
I have a problem, which is not easily described. I'm writing a web application
I am using a javax.servlet.http.HttpServletRequest to implement a web application. I have no problem
I have an 'access denied' problem on an ASP.NET web application, where the user
I have a problem here. Right now I'm doing my Web Based Application, my
I'm using Rational Application Developer to create some web services. The problem I have
Well i have a web page hosted in a IIS 7.0 now the problem
I have created web-application using JSF 2.0 & JSP and facing some weird problem.
I have a server component that processes video uploads for a web/iOS/Android application. However
The problem: I have a web application which is served by Jetty webserver v

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.