File tree 3 files changed +6
-3
lines changed
extensions/CocoStudio/GUI/UIWidgets/ScrollWidget
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,8 @@ ccs.UIListView = ccs.UILayout.extend(/** @lends ccs.UIListView# */{
440
440
* @param {cc.Point } touchPoint
441
441
*/
442
442
checkChildInfo : function ( handleState , sender , touchPoint ) {
443
- this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
443
+ if ( this . _enabled && this . _touchEnabled )
444
+ this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
444
445
} ,
445
446
446
447
moveChildren : function ( offset ) {
Original file line number Diff line number Diff line change @@ -502,7 +502,8 @@ ccs.UIPageView = ccs.UILayout.extend(/** @lends ccs.UIPageView# */{
502
502
} ,
503
503
504
504
checkChildInfo : function ( handleState , sender , touchPoint ) {
505
- this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
505
+ if ( this . _enabled && this . _touchEnabled )
506
+ this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
506
507
} ,
507
508
508
509
interceptTouchEvent : function ( handleState , sender , touchPoint ) {
Original file line number Diff line number Diff line change @@ -1309,7 +1309,8 @@ ccs.UIScrollView = ccs.UILayout.extend(/** @lends ccs.UIScrollView# */{
1309
1309
* @param {cc.Point } touchPoint
1310
1310
*/
1311
1311
checkChildInfo : function ( handleState , sender , touchPoint ) {
1312
- this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
1312
+ if ( this . _enabled && this . _touchEnabled )
1313
+ this . interceptTouchEvent ( handleState , sender , touchPoint ) ;
1313
1314
} ,
1314
1315
1315
1316
scrollToTopEvent : function ( ) {
You can’t perform that action at this time.
0 commit comments