{"action":"created","issue":{"url":"https://api.github.com/repos/cubiq/iscroll/issues/652","labels_url":"https://api.github.com/repos/cubiq/iscroll/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/cubiq/iscroll/issues/652/comments","events_url":"https://api.github.com/repos/cubiq/iscroll/issues/652/events","html_url":"https://github.com/cubiq/iscroll/issues/652","id":29887701,"number":652,"title":"Direction with mousewheel","user":{"login":"izifortune","id":3394606,"avatar_url":"https://avatars.githubusercontent.com/u/3394606?v=3","gravatar_id":"","url":"https://api.github.com/users/izifortune","html_url":"https://github.com/izifortune","followers_url":"https://api.github.com/users/izifortune/followers","following_url":"https://api.github.com/users/izifortune/following{/other_user}","gists_url":"https://api.github.com/users/izifortune/gists{/gist_id}","starred_url":"https://api.github.com/users/izifortune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izifortune/subscriptions","organizations_url":"https://api.github.com/users/izifortune/orgs","repos_url":"https://api.github.com/users/izifortune/repos","events_url":"https://api.github.com/users/izifortune/events{/privacy}","received_events_url":"https://api.github.com/users/izifortune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-21T09:32:26Z","updated_at":"2015-03-16T17:51:54Z","closed_at":null,"body":"Hello, i was wondering why directionX and directionY seems not to work when using the mousewheel, they work only if you click/tap on the list.\r\nIf this is the default behaviour there's a way to get the direction of the scroll when using the mousewheel?"},"comment":{"url":"https://api.github.com/repos/cubiq/iscroll/issues/comments/81840617","html_url":"https://github.com/cubiq/iscroll/issues/652#issuecomment-81840617","issue_url":"https://api.github.com/repos/cubiq/iscroll/issues/652","id":81840617,"user":{"login":"trakout","id":1810346,"avatar_url":"https://avatars.githubusercontent.com/u/1810346?v=3","gravatar_id":"","url":"https://api.github.com/users/trakout","html_url":"https://github.com/trakout","followers_url":"https://api.github.com/users/trakout/followers","following_url":"https://api.github.com/users/trakout/following{/other_user}","gists_url":"https://api.github.com/users/trakout/gists{/gist_id}","starred_url":"https://api.github.com/users/trakout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trakout/subscriptions","organizations_url":"https://api.github.com/users/trakout/orgs","repos_url":"https://api.github.com/users/trakout/repos","events_url":"https://api.github.com/users/trakout/events{/privacy}","received_events_url":"https://api.github.com/users/trakout/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T17:51:54Z","updated_at":"2015-03-16T17:51:54Z","body":"Update: Solved it. Inside the `_wheel: function (e) {` function, below the following lines:\r\n\r\n`newX = this.x + Math.round(this.hasHorizontalScroll ? wheelDeltaX : 0);`\r\n`newY = this.y + Math.round(this.hasVerticalScroll ? wheelDeltaY : 0);`\r\n\r\n..insert the following two lines:\r\n\r\n`this.directionX = wheelDeltaX > 0 ? -1 : wheelDeltaX < 0 ? 1 : 0; `\r\n`this.directionY = wheelDeltaY > 0 ? -1 : wheelDeltaY < 0 ? 1 : 0;`"}}