harold-UIUX / jquery-ui-for-ipad-and-iphone

Automatically exported from code.google.com/p/jquery-ui-for-ipad-and-iphone
0 stars 0 forks source link

Click event is called twice with this library if the element is draggable #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I created a demo page: http://jsbin.com/oliwo/2/

What is the expected output? What do you see instead?
On the demo page there are two notes which can be dragged with iPad and Safari 
desktop browser. The problem is the click event. Clicking on the delete button 
on the upper left corner, in desktop safari only once a alert message occurs. 
On iPad, the alert message occurs twice (sometimes the iPad is frozen). I 
expect that also in iOS Safari tapping once the button, only once the alert 
message shouls appear.

What version of the product are you using? On what operating system?
Date: 27/8/2010

Please provide any additional information below.
My JavaScript code:

$(document).ready(function() {
  $(".note").draggable();
  $('.closebutton').click(function() {
    alert("test"); // this is called twice on iPad, but should only called once
  });
});

Attached the complete HTML-file "sample.html" (the content of the demo page 
http://jsbin.com/oliwo/2/)

Original issue reported on code.google.com by phantomi...@yahoo.de on 31 Dec 2010 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
I am experiencing the same issue

        $( "#slider10" ).slider({
            value: 50,
            orientation: "horizontal",
            range: "min",
            animate: true
        });
        $('#slider01').dialog().addTouch();

Causes alerts to trigger twice (sometimes more) and for .append calls to be 
carried out multiple times

Original comment by juliob...@gmail.com on 13 Jan 2011 at 11:47

GoogleCodeExporter commented 9 years ago
Interesting behavior, because if I do not do an alert message, it calls only 
once the action. I do not have an idea what's wrong here...

Original comment by phantomi...@yahoo.de on 14 Jan 2011 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by taka...@gmail.com on 17 Feb 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Please visit below mentioned URL. It'll serve the purpose.
http://stackoverflow.com/questions/8503453/click-event-called-twice-on-touchend-
in-ipad

Original comment by vorabhav...@gmail.com on 15 Feb 2012 at 1:34