There are no UX for the multi-touch on scrollview,
and since the multi-touch generates unexpected behavior, block this event.
Change-Id: If3b9811bd8812f4ab1bd1b7e77dc1c289a7ec45d
this._dragEvt = "touchstart touchmove touchend click";
this._dragCB = function ( e ) {
this._dragEvt = "touchstart touchmove touchend click";
this._dragCB = function ( e ) {
+ var touches = e.originalEvent.touches;
switch ( e.type ) {
case "touchstart":
switch ( e.type ) {
case "touchstart":
- t = e.originalEvent.targetTouches[0];
+ if ( touches.length != 1) {
+ return;
+ }
+
return self._handleDragStart( e,
return self._handleDragStart( e,
+ touches[0].pageX, touches[0].pageY );
- t = e.originalEvent.targetTouches[0];
+ if ( touches.length != 1) {
+ return;
+ }
+
return self._handleDragMove( e,
return self._handleDragMove( e,
+ touches[0].pageX, touches[0].pageY );
+ if ( touches.length != 0) {
+ return;
+ }
+
return self._handleDragStop( e );
case "click":
return self._handleDragStop( e );
case "click":