OSDN Git Service

click event handling problem fix (Ticket: #21824)
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 3 Jun 2010 15:02:38 +0000 (00:02 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 3 Jun 2010 15:02:38 +0000 (00:02 +0900)
data/public/iscroll/iscroll.js

index 56a186f..5cb2e99 100644 (file)
@@ -124,7 +124,6 @@ iScroll.prototype = {
                return false;
         }
 
-               e.preventDefault();
                e.stopPropagation();
                
                this.element.style.webkitTransitionDuration = '0';
@@ -156,7 +155,7 @@ iScroll.prototype = {
                if (e.targetTouches.length != 1) {
                        return false;
                }
-
+               e.preventDefault();
                var leftDelta = this.scrollX === true ? e.touches[0].pageX - this.touchStartX : 0;
                var topDelta = this.scrollY === true ? e.touches[0].pageY - this.touchStartY : 0;