Jump to content

Recommended Posts

Hi all,

 

I'm "attempting" to make my application IPad compatible and so far I've been able to fix most problems but one.

 

I have a bunch of clickable divs, which trigger specific events according to the order you click them.

for instance, you click on several days and they're marked as selected

You click on an event label, get a confirm box and all selected days are added to the event label.

Now, once I do that, it doesn't matter where I click next, it registers my click at the last position.

 

so lets say I "press" the screen at coordinates 50, 100, system returns a touchend at null, null

next I press the screen at coordinates 100, 200, systems returns a touchend at 50,100

etc...

 

 

This is very confusing and will result in unwanted actions.

 

Does anyone have any clue why this is? is it IPAD related? or am I doing something wrong with my javascript (jquery)

 

All "click" events are triggered as "touchend" incase of a IPAD

 

Thx for any help

It sounds like the problem is in your JS. If you showed some code maybe we could help.

 

Here's an example you can try on your iPad.

http://xaotique.no-ip.org/tmp/12/

 

$(document).ready(function()
{
   $("body").html("Click Anywhere");

   $(document).click(function(e)
   {
       $("body").html("Clicked At: ( " + e.pageX + ", " + e.pageY + " )");
   });
});

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.