scrollview: fix the drag bug
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 31 Dec 2012 07:01:58 +0000 (16:01 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 4 Jan 2013 11:19:31 +0000 (20:19 +0900)
When show the end effect, sometimes drag is failed because of the transform is returned. (N_SE-18401)

Change-Id: If68c1c51faee6fe68425c572374ad4049bab179d

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

index 6816192..d222f38 100644 (file)
                        var translate,
                                transition;
 
-                       if ( this._endEffect ) {
-                               return;
-                       }
-
                        if ( !duration || duration === undefined ) {
                                transition = "none";
                        } else {
                },
 
                _handleDragStop: function ( e ) {
+                       var self = this;
+
                        if ( this._skip_dragging ) {
                                return;
                        }
                        this._disableTracking();
 
                        if ( this._endEffect ) {
-                               this._setEndEffect( "out" );
-                               this._hideScrollBars();
-                               this._hideOverflowIndicator();
+                               setTimeout( function () {
+                                       self._setEndEffect( "out" );
+                                       self._hideScrollBars();
+                                       self._hideOverflowIndicator();
+                               }, 300 );
                        }
 
                        return !this._didDrag;