{"action":"closed","issue":{"url":"https://api.github.com/repos/schovi/react-iscroll/issues/25","repository_url":"https://api.github.com/repos/schovi/react-iscroll","labels_url":"https://api.github.com/repos/schovi/react-iscroll/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/schovi/react-iscroll/issues/25/comments","events_url":"https://api.github.com/repos/schovi/react-iscroll/issues/25/events","html_url":"https://github.com/schovi/react-iscroll/issues/25","id":161366372,"number":25,"title":"about scrollTo() ‘ question","user":{"login":"hackerslizc","id":7309720,"avatar_url":"https://avatars.githubusercontent.com/u/7309720?v=3","gravatar_id":"","url":"https://api.github.com/users/hackerslizc","html_url":"https://github.com/hackerslizc","followers_url":"https://api.github.com/users/hackerslizc/followers","following_url":"https://api.github.com/users/hackerslizc/following{/other_user}","gists_url":"https://api.github.com/users/hackerslizc/gists{/gist_id}","starred_url":"https://api.github.com/users/hackerslizc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackerslizc/subscriptions","organizations_url":"https://api.github.com/users/hackerslizc/orgs","repos_url":"https://api.github.com/users/hackerslizc/repos","events_url":"https://api.github.com/users/hackerslizc/events{/privacy}","received_events_url":"https://api.github.com/users/hackerslizc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-21T07:26:06Z","updated_at":"2016-07-07T11:21:54Z","closed_at":"2016-07-07T11:21:54Z","body":"```\r\nimport iScroll from 'iscroll/build/iscroll-probe';\r\nimport ReactIScroll from 'react-iscroll';\r\n\r\n<ReactIScroll\r\n    id=\"reactIScroll\"\r\n    ref=\"reactIScroll\"\r\n    iScroll={iScroll}\r\n    onScrollEnd = {this.onScrollEnd.bind(this)}\r\n    onScroll = {this.onScroll.bind(this)}\r\n    options={{\r\n        useTransition:true,\r\n        mouseWheel: false,\r\n        momentum: true,\r\n        scrollbars: false,\r\n        scrollY:true,\r\n        scrollX:false,\r\n        startY:scrollY\r\n    }}>\r\n    <div id=\"positionDom\" className={ _Bottom ? 'hasBottom' : ''} ref=\"positionDom\">\r\n    {\r\n        _list\r\n    }\r\n    </div>\r\n</ReactIScroll>\r\n\r\ngotoTopHandler(){\r\n        var reactscroll = this.refs.reactIScroll;\r\n        \r\n        **_# PS: i want use  scrollTo() back Top like reactIScroll.scrollTo(0,0), can you tall me ,how can I do?_**\r\n\r\n        console.log(reactscroll); \r\n        // reactscroll.props.iScroll.prototype.scrollTo(0,0,1000)\r\n    }\r\n\r\n    gotoTop (){\r\n        return (<Tappable className=\"animated fadeInUp goto-top zindex-1000\" component=\"button\" onTap={this.gotoTopHandler.bind(this)}>\r\n                    <div className=\"goto-top-inner\">\r\n                      <img src=\"../img/goto-top.png\" alt=\"\"/>\r\n                    </div>\r\n                </Tappable>)\r\n    }\r\n```\r\n\r\n\r\n\r\n# **i want use  scrollTo() back Top like reactIScroll.scrollTo(0,0), can you tall me ,how can I do?**"}}
{"actor":{"display_login":"schovi"}}