Skip to content

scrollview created by cocostudio do not work in cocos2d-html5 #1361

@fantasyni

Description

@fantasyni

i create a scrollview in cocostudio

this._widget = ccs.GUIReader.getInstance().widgetFromJsonFile("res/UI/ui.json");
this._uiLayer.addWidget(this._widget);

add this widget to cocos2d-html5
the scrollview created in cocostudio does not work
then i step into the cocos2d-html5 source codes
it shows that scrollChildren function will always scroll to the left

the tests case in cocos2d-html5 uses the scrollView by just creating a new one

a test case using scrollView created by cocostudio will be better

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions