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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:48:29+00:00 2026-06-15T03:48:29+00:00

I am running into a weird issue when using -webkit-overflow-touch on iOS Safari. I

  • 0

I am running into a weird issue when using -webkit-overflow-touch on iOS Safari.

I do have a div#viewport that has the following CSS:

#viewport{
    width: 1024px;
    height: 768px;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

Inside this div I am displaying content (div.page) of twice the horizontal size. When the user has reached the end he can swipe left to get to the next page. This is my handler:

if ($('.page:visible').offset().left <= -1024){ //only change page when the page is scrolled to its end
   $('.page:visible').next('.page').buildPage().end().destroyPage(); //custom functions that DO NOT CONTAIN ANY scroll manipulation
   $('#viewport').scrollLeft(0);
}

The second line should be “rewinding” the newly shown page so that the user can see the left portion of the newly shown page. This works as expected on desktop, yet on iOS Safari the following happens: The new page gets shown, gets rewound and instantly bounces back to the right (I figured that out by animating the scrollLeft instead of just setting it). To make things even more strange I still get the correct values (0) when I debug, yet the displayed content does not match these.

Am I doing something wrong? Is this a bug in iOS Safari or in jQuery’s scrollLeft? Is there another way to tackle this?

EDIT: So what I just found out is that the root of the problem seems to be that the “bouncy” scroll is not finished when I trigger my swipe so it will interfer with my setting of the scrollLeft. When I wrap the $('#viewport').scrollLeft(0); in a timeout to make sure that the bounce has finished it works just as expected. Still I do not have a real clue about how to solve this. Will an event be fired when the animation ends?

EDIT #2: So what I managed to find out is that when doing the following:

$('#viewport').css('-webkit-overflow-scrolling','auto');
$('#viewport').scrollLeft(0);
$('#viewport').css('-webkit-overflow-scrolling','scroll');

I am able to “trick” the page into displaying correctly, yet this yields another really strange result: when I interact with the page the coordinates are offset so I will trigger events on the right hand side of my scrollable page. This ends when I have scrolled, coordinates will be correct then. I cannot manually trigger a scroll though.

  • 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-15T03:48:30+00:00Added an answer on June 15, 2026 at 3:48 am

    So, what I found out is that the only way to solve this is to wrap each .page-element in a seperate .viewport-container as each new wrapper will have an own “momentum” so you can programatically scroll the next page while the previous page is still controlled by the overflow-scrolling’s momentum.

    While this solves the problem described in my question, I ran into another bug that makes this approach unusable, as iOS doesn’t update its coordinates until the next scroll.
    See: https://bugs.webkit.org/show_bug.cgi?id=90393 for info on that.

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

Sidebar

Related Questions

I'm running into a weird issue with reflection in Scala 2.10.0 Milestone 4 that
I'm running into a weird issue that I'm struggling to figure out what's causing
I have extended SimpleCursorAdapter and am running into a weird issue with bindView, which
I'm running a weird issue here. I have code that makes jquery ajax calls
I am running into a weird issue for my Company. I have setup a
I'm running into something weird here. I have an authenticator that relies on ND5
Trying to set up a new project, and running into a weird issue. I
I'm running into a weird issue when I try and move my Do loop,
I'm running into a weird issue with Entity Framework in .NET 3.5 SP1 within
Hey guys I'm running into a weird issue.. Basically, a user logs into a

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.