{"action":"opened","issue":{"url":"https://api.github.com/repos/mphonic/react-touch-knob/issues/1","repository_url":"https://api.github.com/repos/mphonic/react-touch-knob","labels_url":"https://api.github.com/repos/mphonic/react-touch-knob/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mphonic/react-touch-knob/issues/1/comments","events_url":"https://api.github.com/repos/mphonic/react-touch-knob/issues/1/events","html_url":"https://github.com/mphonic/react-touch-knob/issues/1","id":371294412,"node_id":"MDU6SXNzdWUzNzEyOTQ0MTI=","number":1,"title":"value 10x out of range","user":{"login":"jlangr","id":91203,"node_id":"MDQ6VXNlcjkxMjAz","avatar_url":"https://avatars2.githubusercontent.com/u/91203?v=4","gravatar_id":"","url":"https://api.github.com/users/jlangr","html_url":"https://github.com/jlangr","followers_url":"https://api.github.com/users/jlangr/followers","following_url":"https://api.github.com/users/jlangr/following{/other_user}","gists_url":"https://api.github.com/users/jlangr/gists{/gist_id}","starred_url":"https://api.github.com/users/jlangr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlangr/subscriptions","organizations_url":"https://api.github.com/users/jlangr/orgs","repos_url":"https://api.github.com/users/jlangr/repos","events_url":"https://api.github.com/users/jlangr/events{/privacy}","received_events_url":"https://api.github.com/users/jlangr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-17T22:41:18Z","updated_at":"2018-10-17T22:41:18Z","closed_at":null,"author_association":"NONE","body":"I've encountered a few cases where the generated value is ten times or so the range of values specified by min and max. One easily repeatable case: Drag the mouse around to point at the gap at the bottom of the circle. For a knob with range 1 to 100, the callback shows a value of 991 in this case.\r\n\r\nI've encountered similar problems every once in a while elsewhere as I dragged the mouse around the arc.\r\n\r\nI tried changing the range to be 1-10, and saw a value of 51 in one case (and 91 in the other case) instead of an expected 5.xxx... or 9.xxx....\r\n\r\nIf I change the range to be 0-100, the callback value for dragging the volume to all-the-way around (clockwise) is 1001. I suspect I want a 0-based range.\r\n\r\nHere's my JSX:\r\n\r\n<TouchKnob class='knob' name='score'\r\n          min='1' max='100' value='65'\r\n          onChange={(value) => console.log('hey change', value)}\r\n          onEnd={(value) => { \r\n            console.log(value)\r\n          }}\r\n          showNumber={true} />\r\n\r\nI attached a screen shot.\r\n\r\nthanks in advance for any thoughts.\r\n\r\n<img width=\"435\" alt=\"screen shot 2018-10-17 at 4 27 25 pm\" src=\"https://user-images.githubusercontent.com/91203/47120180-fa06a900-d22a-11e8-9743-deb6386e974a.png\">\r\n"}}
{"actor":{"display_login":"jlangr"}}