{"action":"closed","issue":{"url":"https://api.github.com/repos/websanova/wPaint/issues/109","labels_url":"https://api.github.com/repos/websanova/wPaint/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/websanova/wPaint/issues/109/comments","events_url":"https://api.github.com/repos/websanova/wPaint/issues/109/events","html_url":"https://github.com/websanova/wPaint/issues/109","id":100522742,"number":109,"title":"Incorrect mouse position on mobile devices when scaled/zoomed","user":{"login":"visore","id":1324694,"avatar_url":"https://avatars.githubusercontent.com/u/1324694?v=3","gravatar_id":"","url":"https://api.github.com/users/visore","html_url":"https://github.com/visore","followers_url":"https://api.github.com/users/visore/followers","following_url":"https://api.github.com/users/visore/following{/other_user}","gists_url":"https://api.github.com/users/visore/gists{/gist_id}","starred_url":"https://api.github.com/users/visore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visore/subscriptions","organizations_url":"https://api.github.com/users/visore/orgs","repos_url":"https://api.github.com/users/visore/repos","events_url":"https://api.github.com/users/visore/events{/privacy}","received_events_url":"https://api.github.com/users/visore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T11:31:10Z","updated_at":"2015-08-12T12:50:01Z","closed_at":"2015-08-12T12:50:01Z","body":"People who have problems that things are drawn in incorrect places, especially with mobile devices that are zoomed or scaled: I found a quick hack:\r\n\r\nLook for in wPaint.js:\r\n\r\n  simulatedEvent.initMouseEvent(\r\n        type, true, true, window, 1, \r\n        first.screenX, first.screenY, first.clientX, first.clientY,\r\n        false, false, false, false, 0/*left*/, null\r\n      );\r\n\r\nand change it to:\r\n\r\n  simulatedEvent.initMouseEvent(\r\n        type, true, true, window, 1, \r\n        first.screenX, first.screenY, first.clientX+window.scrollX, first.clientY+window.scrollY,\r\n        false, false, false, false, 0/*left*/, null\r\n      );"}}