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

  • Home
  • SEARCH
  • 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 6102247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:35:33+00:00 2026-05-23T13:35:33+00:00

All, I’m working on a web application for iOS that uses a fixed position

  • 0

All,

I’m working on a web application for iOS that uses a fixed position header (much like Gmail’s mobile interface).

Since mobile browsers ignore position:fixed, this is a little tricky.

Then, I found Google’s excellent article on how they implemented it for the mobile version of Gmail:

http://code.google.com/mobile/articles/webapp_fixed_ui.html

The only problem – they left out several key pieces of code (as “exercises for the reader”). I don’t know if they did this to protect their own code, or just to keep the tutorial short.

In any case, I’ve been able to fill in most, but not all of the missing pieces. The part I’m stuck on… what to do if the momentum takes the scrollable area past the boundaries of the scrollable frame.

Here’s what the article suggests:

In our implementation we detect this case and handle it by queueing up several transitions. The first transition takes us to the boundary, here the final velocity is not zero so we need a different cubic-bezier timing function.
The second transition bounces past the boundary a little bit, the final velocity is zero so we can use the cubic-bezier timing function shown above.
The third transition decelerates the content back to the boundary using the build in ease-out timing function.

That makes sense, but a few things I can’t figure out…

  1. How do you specify a webkit transition with a timing function in which the final velocity is NOT zero? In other words, when you use a cubic-bezier for the timing function, you can only specify the middle two control points – the fisrt (0,0) and last (1,1) are assumed. So, isn’t the final velocity ALWAYS zero?

  2. How do you calculate what the velocity SHOULD be when you reach the boundary?

If anyone has worked out the details of this, and is willing to share it – that’d be much appreciated!

  • 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-23T13:35:34+00:00Added an answer on May 23, 2026 at 1:35 pm

    As shown on rumour sites, leaks of iOS5 have shown that workarounds will be no longer necessary. position:fixed just works.

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

Sidebar

Related Questions

All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of
All crash reports submitted for our application on iOS 4.0 are giving the below
All throughout an application wherever error messages (or other user messages) are used I
All, I currently have two projects that are under SourceSafe that I am unable
All I need to do is have a form that does this: User enters
All the STL containers that implement resize use copies to populate the new elements
All thread create methods like pthread_create() or CreateThread() in Windows expect the caller to
All source code hosting services have size limits. I am wondering that does that
All the table names are appended with a 's'? Like table test will appear
I have a new web app that is packaged as a WAR as part

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.