How to implement scroll view like iframe in html.I have some paragraph text and the space is small so i want to implement scroll view in that space so if i scroll i can read whole text and also implement some button events on the text.
You can try our UIWidgets, we have a UIScrollView class for your intention, it’s located in “extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollView”. I know, it’s a little bit deep … We will change this soon.https://github.com/cocos2d/cocos2d-html5/blob/master/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollView.js
If you want some example to use this class, you can refer to the test cases: “samples/CocoStudioTest/GUITest/UIScrollViewTest”https://github.com/cocos2d/cocos2d-js-tests/blob/master/tests/CocoStudioTest/GUITest/UIScrollViewTest/UIScrollViewTest.js
If this class is no help for you, please let us know what your use case with ScrollView, all feedbacks are welcome too.