{"action":"opened","issue":{"url":"https://api.github.com/repos/szimek/signature_pad/issues/282","repository_url":"https://api.github.com/repos/szimek/signature_pad","labels_url":"https://api.github.com/repos/szimek/signature_pad/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/szimek/signature_pad/issues/282/comments","events_url":"https://api.github.com/repos/szimek/signature_pad/issues/282/events","html_url":"https://github.com/szimek/signature_pad/issues/282","id":249320292,"number":282,"title":"Possible improvement for accuracy of image captured","user":{"login":"vincent-cm","id":22391049,"avatar_url":"https://avatars3.githubusercontent.com/u/22391049?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-cm","html_url":"https://github.com/vincent-cm","followers_url":"https://api.github.com/users/vincent-cm/followers","following_url":"https://api.github.com/users/vincent-cm/following{/other_user}","gists_url":"https://api.github.com/users/vincent-cm/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-cm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-cm/subscriptions","organizations_url":"https://api.github.com/users/vincent-cm/orgs","repos_url":"https://api.github.com/users/vincent-cm/repos","events_url":"https://api.github.com/users/vincent-cm/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-cm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-10T11:47:20Z","updated_at":"2017-08-10T11:47:20Z","closed_at":null,"body":"Adding a `backingStoreRatio` to calculate final display ratio:\r\n\r\n\r\n```\r\nlet devicePixelRatio = window.devicePixelRatio || 1,\r\n      backingStoreRatio = canvas.getContext(\"2d\").webkitBackingStorePixelRatio ||\r\n        canvas.getContext(\"2d\").mozBackingStorePixelRatio ||\r\n        canvas.getContext(\"2d\").msBackingStorePixelRatio ||\r\n        canvas.getContext(\"2d\").oBackingStorePixelRatio ||\r\n        canvas.getContext(\"2d\").backingStorePixelRatio || 1,\r\n      ratio = devicePixelRatio / backingStoreRatio;\r\n```"}}
{"actor":{"display_login":"vincent-cm"}}