{"action":"created","issue":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/999","labels_url":"https://api.github.com/repos/craftyjs/Crafty/issues/999/labels{/name}","comments_url":"https://api.github.com/repos/craftyjs/Crafty/issues/999/comments","events_url":"https://api.github.com/repos/craftyjs/Crafty/issues/999/events","html_url":"https://github.com/craftyjs/Crafty/issues/999","id":124574517,"number":999,"title":"Mouse down on sprite misalignment","user":{"login":"proyb6","id":16257425,"avatar_url":"https://avatars.githubusercontent.com/u/16257425?v=3","gravatar_id":"","url":"https://api.github.com/users/proyb6","html_url":"https://github.com/proyb6","followers_url":"https://api.github.com/users/proyb6/followers","following_url":"https://api.github.com/users/proyb6/following{/other_user}","gists_url":"https://api.github.com/users/proyb6/gists{/gist_id}","starred_url":"https://api.github.com/users/proyb6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proyb6/subscriptions","organizations_url":"https://api.github.com/users/proyb6/orgs","repos_url":"https://api.github.com/users/proyb6/repos","events_url":"https://api.github.com/users/proyb6/events{/privacy}","received_events_url":"https://api.github.com/users/proyb6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-02T04:16:39Z","updated_at":"2016-01-02T16:14:30Z","closed_at":null,"body":"I could click a sprite to change to next frame and revert when mouse click release.\r\nAfter applying using zoomOut() to scale smaller than 100%, I found the mouse click still response to the same width and height 28px x 99px instead of smaller sprite sized if we do not use Crafty build-in zoom method.\r\n\r\n```\r\nfunction zoomOut(){\r\ndocument.body.style.zoom=.96;this.blur();\r\n}\r\n\r\nCrafty.sprite(1, \"button.png\", {\r\nbtnup : [ 0, 0, 28, 99 ],\r\nbtndown : [ 28, 0, 28, 99 ]\r\n});\r\n\r\nCrafty.e(\"2D, DOM, Mouse, btnup\").sprite(0,0).attr({x:(i*28), y:0})\r\n.bind('MouseDown', function(e){this.sprite(28,0);})\r\n.bind('MouseUp', function(e){this.sprite(0,0);})\r\n.bind('MouseOut', function(e){this.sprite(0,0);})\r\n```"},"comment":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/comments/168403221","html_url":"https://github.com/craftyjs/Crafty/issues/999#issuecomment-168403221","issue_url":"https://api.github.com/repos/craftyjs/Crafty/issues/999","id":168403221,"user":{"login":"kevinsimper","id":1126497,"avatar_url":"https://avatars.githubusercontent.com/u/1126497?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsimper","html_url":"https://github.com/kevinsimper","followers_url":"https://api.github.com/users/kevinsimper/followers","following_url":"https://api.github.com/users/kevinsimper/following{/other_user}","gists_url":"https://api.github.com/users/kevinsimper/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsimper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsimper/subscriptions","organizations_url":"https://api.github.com/users/kevinsimper/orgs","repos_url":"https://api.github.com/users/kevinsimper/repos","events_url":"https://api.github.com/users/kevinsimper/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsimper/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T16:14:30Z","updated_at":"2016-01-02T16:14:30Z","body":"It is not easy per say, somebody is talking about how to solve it here\r\nhttp://stackoverflow.com/questions/19235866/canvas-at-native-resolution-despite-zooming-retina"}}