Jump to content

Ipad Touchend Event Triggers 1 Touch Slow


Darghon

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 + " )");
   });
});

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.