From 060e1a1649a8375a2e471978bb1f0c36e2d5ca00 Mon Sep 17 00:00:00 2001 From: Jinhyuk Jun Date: Wed, 20 Mar 2013 10:04:54 +0900 Subject: [PATCH] Scrollview : disable VI effect for gesture event block to scrollTop/bottom when scrolling 3 times Change-Id: I11a9d034bb26f44d4561888f989af80059005197 --- src/js/jquery.mobile.tizen.scrollview.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/js/jquery.mobile.tizen.scrollview.js b/src/js/jquery.mobile.tizen.scrollview.js index 5614868..414cef4 100644 --- a/src/js/jquery.mobile.tizen.scrollview.js +++ b/src/js/jquery.mobile.tizen.scrollview.js @@ -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; }, -- 2.7.4