{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10216","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10216/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10216/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10216/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10216","id":55461073,"number":10216,"title":"ScrollView drag event will effect it's parent drag event","user":{"login":"liamcindy","id":2688189,"avatar_url":"https://avatars.githubusercontent.com/u/2688189?v=3","gravatar_id":"","url":"https://api.github.com/users/liamcindy","html_url":"https://github.com/liamcindy","followers_url":"https://api.github.com/users/liamcindy/followers","following_url":"https://api.github.com/users/liamcindy/following{/other_user}","gists_url":"https://api.github.com/users/liamcindy/gists{/gist_id}","starred_url":"https://api.github.com/users/liamcindy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamcindy/subscriptions","organizations_url":"https://api.github.com/users/liamcindy/orgs","repos_url":"https://api.github.com/users/liamcindy/repos","events_url":"https://api.github.com/users/liamcindy/events{/privacy}","received_events_url":"https://api.github.com/users/liamcindy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-26T09:23:36Z","updated_at":"2015-01-26T09:44:37Z","closed_at":null,"body":"        Size widgetSize = _widget->getContentSize();\r\n\r\n        ui::ScrollView* baseScrollView = ui::ScrollView::create();\r\n        baseScrollView->setBackGroundColorType(Layout::BackGroundColorType::SOLID);\r\n        baseScrollView->setBackGroundColor(Color3B(100,100,100));\r\n        baseScrollView->ignoreContentAdaptWithSize(false);\r\n        baseScrollView->setContentSize(Size(300,200));\r\n        baseScrollView->setInnerContainerSize(Size(300,300));\r\n        baseScrollView->setPosition(Vec2(100,100));\r\n\r\n        ui::ImageView* imageView_1 = ui::ImageView::create(\"cocosui/backtotoppressed.png\");\r\n        imageView_1->setPosition(Vec2(0, 200));\r\n        baseScrollView->addChild(imageView_1);\r\n\r\n        ui::ScrollView* scrollView_1 = ui::ScrollView::create();\r\n        scrollView_1->setBackGroundColorType(Layout::BackGroundColorType::SOLID);\r\n        scrollView_1->setBackGroundColor(Color3B(50, 100, 50));\r\n        scrollView_1->ignoreContentAdaptWithSize(false);\r\n        scrollView_1->setContentSize(Size(200, 200));\r\n        scrollView_1->setInnerContainerSize(Size(200,300));\r\n        scrollView_1->setPosition(Vec2(100,100));\r\n\r\n        ui::ImageView* imageView_2 = ui::ImageView::create(\"cocosui/backtotoppressed.png\");\r\n        imageView_2->setPosition(Vec2(100,200));\r\n        scrollView_1->addChild(imageView_2);\r\n\r\n        ui::ImageView* imageView_3 = ui::ImageView::create(\"cocosui/backtotoppressed.png\");\r\n        imageView_3->setPosition(Vec2(100, 100));\r\n        scrollView_1->addChild(imageView_3);\r\n\r\n        baseScrollView->addChild(scrollView_1);\r\n\r\n        _uiLayer->addChild(baseScrollView);\r\n\r\nscrollView 嵌套 scrollView的时候，子对象scrollview内部滚动的时候，事件会传递到父级ScrollVIew，会出现级联滚动的情况；"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/71435435","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10216#issuecomment-71435435","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10216","id":71435435,"user":{"login":"andyque","id":785541,"avatar_url":"https://avatars.githubusercontent.com/u/785541?v=3","gravatar_id":"","url":"https://api.github.com/users/andyque","html_url":"https://github.com/andyque","followers_url":"https://api.github.com/users/andyque/followers","following_url":"https://api.github.com/users/andyque/following{/other_user}","gists_url":"https://api.github.com/users/andyque/gists{/gist_id}","starred_url":"https://api.github.com/users/andyque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyque/subscriptions","organizations_url":"https://api.github.com/users/andyque/orgs","repos_url":"https://api.github.com/users/andyque/repos","events_url":"https://api.github.com/users/andyque/events{/privacy}","received_events_url":"https://api.github.com/users/andyque/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T09:44:37Z","updated_at":"2015-01-26T09:44:37Z","body":"@liamcindy \r\nPlease call `setPropagateTouchEvents(false)` of the inner scrollView"}}