{"action":"created","issue":{"url":"https://api.github.com/repos/melonjs/melonJS/issues/686","labels_url":"https://api.github.com/repos/melonjs/melonJS/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/melonjs/melonJS/issues/686/comments","events_url":"https://api.github.com/repos/melonjs/melonJS/issues/686/events","html_url":"https://github.com/melonjs/melonJS/issues/686","id":81212556,"number":686,"title":"GUI_Object binds both down & enter pointer events","user":{"login":"agmcleod","id":113275,"avatar_url":"https://avatars.githubusercontent.com/u/113275?v=3","gravatar_id":"","url":"https://api.github.com/users/agmcleod","html_url":"https://github.com/agmcleod","followers_url":"https://api.github.com/users/agmcleod/followers","following_url":"https://api.github.com/users/agmcleod/following{/other_user}","gists_url":"https://api.github.com/users/agmcleod/gists{/gist_id}","starred_url":"https://api.github.com/users/agmcleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agmcleod/subscriptions","organizations_url":"https://api.github.com/users/agmcleod/orgs","repos_url":"https://api.github.com/users/agmcleod/repos","events_url":"https://api.github.com/users/agmcleod/events{/privacy}","received_events_url":"https://api.github.com/users/agmcleod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/melonjs/melonJS/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T01:16:53Z","updated_at":"2015-05-27T20:27:02Z","closed_at":null,"body":"https://github.com/melonjs/melonJS/blob/970927095d77c4672f181a05d3d33b79454829b0/src/renderable/GUI.js#L99\r\n\r\nRealized due to bug in: https://groups.google.com/forum/#!topic/melonjs/204CYK6Yoe4\r\n\r\nGiven that pointerenter is the event that does not bubble for entering a section, I don't see how this should resolve to onClick. So i think we have 3 options:\r\n\r\n1. Remove the calls to pointerenter & pointerleave\r\n2. Keep the events, but bind to different callback functions. `onEnter`, `onLeave`\r\n3. Change the constructor to accept options of what events should be bound."},"comment":{"url":"https://api.github.com/repos/melonjs/melonJS/issues/comments/106062033","html_url":"https://github.com/melonjs/melonJS/issues/686#issuecomment-106062033","issue_url":"https://api.github.com/repos/melonjs/melonJS/issues/686","id":106062033,"user":{"login":"agmcleod","id":113275,"avatar_url":"https://avatars.githubusercontent.com/u/113275?v=3","gravatar_id":"","url":"https://api.github.com/users/agmcleod","html_url":"https://github.com/agmcleod","followers_url":"https://api.github.com/users/agmcleod/followers","following_url":"https://api.github.com/users/agmcleod/following{/other_user}","gists_url":"https://api.github.com/users/agmcleod/gists{/gist_id}","starred_url":"https://api.github.com/users/agmcleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agmcleod/subscriptions","organizations_url":"https://api.github.com/users/agmcleod/orgs","repos_url":"https://api.github.com/users/agmcleod/repos","events_url":"https://api.github.com/users/agmcleod/events{/privacy}","received_events_url":"https://api.github.com/users/agmcleod/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:27:02Z","updated_at":"2015-05-27T20:27:02Z","body":"Ah okay, was thinking about it like with DOM events. Typically a mouseup on\na dom element will still fire on that element, but here we're doing at run\ntime rect calculation.\n\nOn Wed, May 27, 2015 at 3:20 PM Jay Oster <notifications@github.com> wrote:\n\n> For cases like this: blipjoy/sprung_fever#2\n> <https://github.com/blipjoy/sprung_fever/issues/2>\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/melonjs/melonJS/issues/686#issuecomment-106040072>.\n>\n"}}