{"action":"created","issue":{"url":"https://api.github.com/repos/xylosper/bomi/issues/333","labels_url":"https://api.github.com/repos/xylosper/bomi/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/xylosper/bomi/issues/333/comments","events_url":"https://api.github.com/repos/xylosper/bomi/issues/333/events","html_url":"https://github.com/xylosper/bomi/issues/333","id":71124617,"number":333,"title":"ultra fast scrolling when using touchpad.","user":{"login":"maxmitti","id":12127872,"avatar_url":"https://avatars.githubusercontent.com/u/12127872?v=3","gravatar_id":"","url":"https://api.github.com/users/maxmitti","html_url":"https://github.com/maxmitti","followers_url":"https://api.github.com/users/maxmitti/followers","following_url":"https://api.github.com/users/maxmitti/following{/other_user}","gists_url":"https://api.github.com/users/maxmitti/gists{/gist_id}","starred_url":"https://api.github.com/users/maxmitti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxmitti/subscriptions","organizations_url":"https://api.github.com/users/maxmitti/orgs","repos_url":"https://api.github.com/users/maxmitti/repos","events_url":"https://api.github.com/users/maxmitti/events{/privacy}","received_events_url":"https://api.github.com/users/maxmitti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-26T21:44:35Z","updated_at":"2015-04-27T15:08:32Z","closed_at":null,"body":"In the playback history and the playlist, scrolling is way too fast when I use my touchpad.\r\nWhen I use my mouse it's working normally.\r\nTouchpad-scrolling is working normally in other applications."},"comment":{"url":"https://api.github.com/repos/xylosper/bomi/issues/comments/96694726","html_url":"https://github.com/xylosper/bomi/issues/333#issuecomment-96694726","issue_url":"https://api.github.com/repos/xylosper/bomi/issues/333","id":96694726,"user":{"login":"xylosper","id":4363181,"avatar_url":"https://avatars.githubusercontent.com/u/4363181?v=3","gravatar_id":"","url":"https://api.github.com/users/xylosper","html_url":"https://github.com/xylosper","followers_url":"https://api.github.com/users/xylosper/followers","following_url":"https://api.github.com/users/xylosper/following{/other_user}","gists_url":"https://api.github.com/users/xylosper/gists{/gist_id}","starred_url":"https://api.github.com/users/xylosper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xylosper/subscriptions","organizations_url":"https://api.github.com/users/xylosper/orgs","repos_url":"https://api.github.com/users/xylosper/repos","events_url":"https://api.github.com/users/xylosper/events{/privacy}","received_events_url":"https://api.github.com/users/xylosper/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T15:08:32Z","updated_at":"2015-04-27T15:08:32Z","body":"Also, try this one, too:\r\n```diff\r\ndiff --git a/src/bomi/imports/bomi/ModelView.qml b/src/bomi/imports/bomi/ModelView.qml\r\nindex f4c324a..f2b1693 100644\r\n--- a/src/bomi/imports/bomi/ModelView.qml\r\n+++ b/src/bomi/imports/bomi/ModelView.qml\r\n@@ -291,6 +291,28 @@ Item {\r\n                 positionViewAtIndex(idx, ListView.Visible)\r\n             }\r\n         }\r\n+        function calcVelocity(angle, smooth, pos, min, max) {\r\n+            var v = angle\r\n+            if (v > 0 && pos > min)\r\n+                return Math.max(v - smooth, maximumFlickVelocity / 4)\r\n+            else if (v < 0 && pos < max)\r\n+                return Math.min(v - smooth, -maximumFlickVelocity / 4)\r\n+            return 0\r\n+        }\r\n+\r\n+        function wheelScroll(angle, pixel) {\r\n+            if (pixel.x != 0 || pixel.y != 0) {\r\n+                contentX -= pixel.x\r\n+                contentY -= pixel.y\r\n+                returnToBounds()\r\n+            } else {\r\n+                var vx = calcVelocity(angle.x, horizontalVelocity, contentX,\r\n+                                      0, contentWidth - list.width)\r\n+                var vy = calcVelocity(angle.y, verticalVelocity, contentY,\r\n+                                      -headerItem.height, contentHeight - list.height - footerItem.height)\r\n+                flick(vx, vy)\r\n+            }\r\n+        }\r\n \r\n         MouseArea {\r\n             z: -1\r\n@@ -305,6 +327,7 @@ Item {\r\n                 if (index !== -1)\r\n                     view.activated(index)\r\n             }\r\n+            onWheel: list.wheelScroll(wheel.angleDelta, wheel.pixelDelta)\r\n         }\r\n \r\n \r\n```\r\nAnd which one do you think is better?"}}