Scrollview : disable VI effect for gesture event
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Wed, 20 Mar 2013 01:04:54 +0000 (10:04 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 22 Mar 2013 11:21:33 +0000 (20:21 +0900)
block to scrollTop/bottom when scrolling 3 times

Change-Id: I11a9d034bb26f44d4561888f989af80059005197

src/js/jquery.mobile.tizen.scrollview.js

index 5614868..414cef4 100644 (file)
@@ -815,7 +815,6 @@ define( [ ], function ( ) {
                                reset = function () {
                                        clearTimeout( self._gesture_timer );
                                        self._gesture_dir = 0;
-                                       self._gesture_count = 0;
                                        self._gesture_timer = undefined;
                                },
                                direction = {
@@ -836,7 +835,6 @@ define( [ ], function ( ) {
                        }
 
                        if ( !this._gesture_timer ) {
-                               this._gesture_count = 1;
                                this._gesture_dir = dir;
 
                                this._gesture_timer = setTimeout( function () {
@@ -851,32 +849,6 @@ define( [ ], function ( ) {
                                return false;
                        }
 
-                       this._gesture_count++;
-
-                       if ( this._gesture_count === 3 ) {
-                               switch ( dir ) {
-                               case direction.top:
-                                       this.scrollTo( this._sx, 0, this.options.overshootDuration );
-                                       break;
-                               case direction.bottom:
-                                       this.scrollTo( this._sx, -( this._getViewHeight() - this._$clip.height() ),
-                                                       this.options.overshootDuration );
-                                       break;
-                               case direction.left:
-                                       this.scrollTo( 0, this._sy, this.options.overshootDuration );
-                                       break;
-                               case direction.right:
-                                       this.scrollTo( -( this._getViewWidth() - this._$clip.width() ), this._sy,
-                                                       this.options.overshootDuration );
-                                       break;
-                               }
-
-                               reset();
-                               this._didDrag = true;
-
-                               return true;
-                       }
-
                        return false;
                },