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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:52:11+00:00 2026-05-26T00:52:11+00:00

Right, I’m sure a lot of you are aware that absolute positioning doesn’t work

  • 0

Right, I’m sure a lot of you are aware that absolute positioning doesn’t work for the ipad. However their are fixes. Sort of.

My current script is for a uni project, its at its bare minimums at the moment you can view the markup here http://jsfiddle.net/OwenMelbz/tqdMS/ feel free to fiddle.

The idea is when a use “clicks” the screen it makes something (This will later get a lot more complicated) however it needs to spawn where the user clicks, hence me using absolute positioning.

Now the big issue. This is an iPad Web App. when you click/tap/touch the screen it spawns my object at left:0; as the css positioning doesn’t work.

My whole final year project sort of relies on this. so any support will be amazing.

thanks

Owen

  • 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-26T00:52:12+00:00Added an answer on May 26, 2026 at 12:52 am

    Absolute positioning works, however fixed positioning is more difficult…

    The problem you are having has nothing to do with positioning. The touchstart event object contains a list of touches, and you need to get the pageX/pageY for the first touch. Something like:

    var posY = (spawn.touches ? spawn.touches[0].pageY : spawn.pageY) - 50;
    var posX = (spawn.touches ? spawn.touches[0].pageX : spawn.pageX) - 50;
    

    BUT, this won’t work if you are binding using jQuery since it normalizes the event object. So you need to do something like:

    var posY = (spawn.originalEvent.touches ? spawn.originalEvent.touches[0].pageY : spawn.pageY) - 50;
    var posX = (spawn.originalEvent.touches ? spawn.originalEvent.touches[0].pageX : spawn.pageX) - 50;
    

    That’s a bit verbose, but you can figure out a nicer way of writing that out 🙂

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

Sidebar

Related Questions

Right now I have a script that will get the last five files in
Right now I have a function, in a class that is used to listen
Right, so here the scenario: I've created a class called DiaryPage that inherites from
Right what I was trying to do is validate some input so that the
Right now I have an application that loads a bunch of thumbnail images into
Right now I've programmed a method for use in a swing program that is
Right now, I only understand that Global indexes on a partitioned table are for
Right, i'm new to PHP and mySQL, but i've got a few questions that
Right now, to be sure I am getting what I want I am using
Right now I have two tables for getting a timeline of posts that 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.