scrollview: skip the dragging of parent scrollview
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 4 Feb 2013 09:08:49 +0000 (18:08 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 7 Feb 2013 05:53:01 +0000 (14:53 +0900)
When a scrollview has a scrollview as parent,
block the parent's scroll events.

Change-Id: I9fcfab68e62cc53910a7f9701a463053968751c2

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

index 73c9798..e3d4f3b 100644 (file)
                        return { x: -this._sx, y: -this._sy };
                },
 
+               skipDragging: function ( value ) {
+                       this._skip_dragging = value;
+               },
+
                _getScrollHierarchy: function () {
                        var svh = [],
                                d;
                                this._didDrag = true;
                                this._showScrollBars();
                                this._showOverflowIndicator();
+
+                               this._$clip.parents(".ui-scrollview-clip").each( function () {
+                                       $( this ).scrollview( "skipDragging", true );
+                               } );
                        }
                },