{"action":"created","issue":{"url":"https://api.github.com/repos/cocos-creator/engine/issues/1078","repository_url":"https://api.github.com/repos/cocos-creator/engine","labels_url":"https://api.github.com/repos/cocos-creator/engine/issues/1078/labels{/name}","comments_url":"https://api.github.com/repos/cocos-creator/engine/issues/1078/comments","events_url":"https://api.github.com/repos/cocos-creator/engine/issues/1078/events","html_url":"https://github.com/cocos-creator/engine/issues/1078","id":174410317,"number":1078,"title":"CCScrollView on desktop web","user":{"login":"HowardBraham","id":539738,"avatar_url":"https://avatars.githubusercontent.com/u/539738?v=3","gravatar_id":"","url":"https://api.github.com/users/HowardBraham","html_url":"https://github.com/HowardBraham","followers_url":"https://api.github.com/users/HowardBraham/followers","following_url":"https://api.github.com/users/HowardBraham/following{/other_user}","gists_url":"https://api.github.com/users/HowardBraham/gists{/gist_id}","starred_url":"https://api.github.com/users/HowardBraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowardBraham/subscriptions","organizations_url":"https://api.github.com/users/HowardBraham/orgs","repos_url":"https://api.github.com/users/HowardBraham/repos","events_url":"https://api.github.com/users/HowardBraham/events{/privacy}","received_events_url":"https://api.github.com/users/HowardBraham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zilongshanren","id":785541,"avatar_url":"https://avatars.githubusercontent.com/u/785541?v=3","gravatar_id":"","url":"https://api.github.com/users/zilongshanren","html_url":"https://github.com/zilongshanren","followers_url":"https://api.github.com/users/zilongshanren/followers","following_url":"https://api.github.com/users/zilongshanren/following{/other_user}","gists_url":"https://api.github.com/users/zilongshanren/gists{/gist_id}","starred_url":"https://api.github.com/users/zilongshanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilongshanren/subscriptions","organizations_url":"https://api.github.com/users/zilongshanren/orgs","repos_url":"https://api.github.com/users/zilongshanren/repos","events_url":"https://api.github.com/users/zilongshanren/events{/privacy}","received_events_url":"https://api.github.com/users/zilongshanren/received_events","type":"User","site_admin":false},"assignees":[{"login":"zilongshanren","id":785541,"avatar_url":"https://avatars.githubusercontent.com/u/785541?v=3","gravatar_id":"","url":"https://api.github.com/users/zilongshanren","html_url":"https://github.com/zilongshanren","followers_url":"https://api.github.com/users/zilongshanren/followers","following_url":"https://api.github.com/users/zilongshanren/following{/other_user}","gists_url":"https://api.github.com/users/zilongshanren/gists{/gist_id}","starred_url":"https://api.github.com/users/zilongshanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilongshanren/subscriptions","organizations_url":"https://api.github.com/users/zilongshanren/orgs","repos_url":"https://api.github.com/users/zilongshanren/repos","events_url":"https://api.github.com/users/zilongshanren/events{/privacy}","received_events_url":"https://api.github.com/users/zilongshanren/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-09-01T00:30:07Z","updated_at":"2016-10-01T01:14:04Z","closed_at":null,"body":"CCScrollView is a little broken on desktop web.  If you scroll using the mouse wheel, or with two-finger scroll on a touchpad, the result is both backwards and really slow.\r\n\r\nFor example, if Google Chrome would normally respond to the mouse wheel gesture by scrolling down about 40 pixels, a Cocos ScrollView will respond by scrolling **up** about 2 pixels.\r\n\r\nI believe this can be fixed by changing CCScrollView.js line 702 from\r\n` var wheelPrecision = 1.0 / 40;`\r\nto\r\n` var wheelPrecision = -0.6;`\r\n\r\nNegative 0.6 feels about right, but see what you think."},"comment":{"url":"https://api.github.com/repos/cocos-creator/engine/issues/comments/250883628","html_url":"https://github.com/cocos-creator/engine/issues/1078#issuecomment-250883628","issue_url":"https://api.github.com/repos/cocos-creator/engine/issues/1078","id":250883628,"user":{"login":"HowardBraham","id":539738,"avatar_url":"https://avatars.githubusercontent.com/u/539738?v=3","gravatar_id":"","url":"https://api.github.com/users/HowardBraham","html_url":"https://github.com/HowardBraham","followers_url":"https://api.github.com/users/HowardBraham/followers","following_url":"https://api.github.com/users/HowardBraham/following{/other_user}","gists_url":"https://api.github.com/users/HowardBraham/gists{/gist_id}","starred_url":"https://api.github.com/users/HowardBraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowardBraham/subscriptions","organizations_url":"https://api.github.com/users/HowardBraham/orgs","repos_url":"https://api.github.com/users/HowardBraham/repos","events_url":"https://api.github.com/users/HowardBraham/events{/privacy}","received_events_url":"https://api.github.com/users/HowardBraham/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T01:14:04Z","updated_at":"2016-10-01T01:14:04Z","body":"@zilongshanren \r\nIt looks like this change was merged, but didn't make it into Cocos Creator 1.2.2.  What happened?\r\n\r\nAlso, in terms of the best wheelPrecision, I've studied this a bit more and I think it's more complicated.  Here are two test pages I set up with wheelPrecisions of -0.1 and -0.6:\r\n\r\nhttps://howardbraham.github.io/0.1/\r\nhttps://howardbraham.github.io/0.6/\r\n\r\nOn the left is a Cocos scroll, and on the right is a native HTML scroll.  To me, on Windows Firefox, the value seems right at -0.1.  But on Windows Chrome, it seems right at -0.6.\r\n\r\nCocos on Firefox is also affected by my Windows setting called \"Choose how many lines to scroll each time,\" while Cocos on Chrome is not affected by this.\r\n\r\nI have not tested on Mac or Linux.  But I think we may need to keep working on this in order to make a consistent experience across all platforms."}}
{"actor":{"display_login":"HowardBraham"}}