{"action":"created","issue":{"url":"https://api.github.com/repos/CreateJS/EaselJS/issues/630","labels_url":"https://api.github.com/repos/CreateJS/EaselJS/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/CreateJS/EaselJS/issues/630/comments","events_url":"https://api.github.com/repos/CreateJS/EaselJS/issues/630/events","html_url":"https://github.com/CreateJS/EaselJS/issues/630","id":86921036,"number":630,"title":"The click event is not working properly","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CreateJS/EaselJS/labels/BrowserBug","name":"BrowserBug","color":"eb6420"},{"url":"https://api.github.com/repos/CreateJS/EaselJS/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T10:35:53Z","updated_at":"2015-11-09T22:20:28Z","closed_at":null,"body":"I added a click event on an object, It is working fine when I tap on my mouse pad but clicks doesn't seem to work. It sometimes takes 2-3 clicks for it to work.\r\n\r\nThis is my code.\r\nThere's a video playing and the canvas is on top of it.\r\n```\r\nvar o1 = new createjs.Shape();\r\no1.graphics.setStrokeStyle( 0 ).beginStroke( '#000' ).drawRect(81,117,234,41);\r\no1.alpha = 0;\r\nvar o1Hit = new createjs.Shape();\r\no1Hit.graphics.beginFill(\"#000\").drawRect(81,117,234,41);\r\no1.hitArea = o1Hit;\r\noptions.addChild(o1);\r\noptions.update();\r\n\r\no1.on(\"click\", function(evt) {\r\n    videojs('sortedd', {}, function(){\r\n    this.src({ type: \"video/mp4\", src: 'questions/question_1/Q394.mp4' });\r\n    this.play();\r\n    currentQuestion = 1;\r\n    options.removeAllChildren();\r\n    options.update();\r\n    var audioElement = document.createElement('audio');\r\n    audioElement.setAttribute('src', 'audio.mp3');\r\n    audioElement.setAttribute('autoplay', 'autoplay');\r\n    audioElement.load();\r\n    audioElement.addEventListener(\"load\", function() {\r\n    audioElement.play();\r\n    }, true);\r\n   });\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/CreateJS/EaselJS/issues/comments/155217270","html_url":"https://github.com/CreateJS/EaselJS/issues/630#issuecomment-155217270","issue_url":"https://api.github.com/repos/CreateJS/EaselJS/issues/630","id":155217270,"user":{"login":"lannymcnie","id":590731,"avatar_url":"https://avatars.githubusercontent.com/u/590731?v=3","gravatar_id":"","url":"https://api.github.com/users/lannymcnie","html_url":"https://github.com/lannymcnie","followers_url":"https://api.github.com/users/lannymcnie/followers","following_url":"https://api.github.com/users/lannymcnie/following{/other_user}","gists_url":"https://api.github.com/users/lannymcnie/gists{/gist_id}","starred_url":"https://api.github.com/users/lannymcnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannymcnie/subscriptions","organizations_url":"https://api.github.com/users/lannymcnie/orgs","repos_url":"https://api.github.com/users/lannymcnie/repos","events_url":"https://api.github.com/users/lannymcnie/events{/privacy}","received_events_url":"https://api.github.com/users/lannymcnie/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T22:20:28Z","updated_at":"2015-11-09T22:20:28Z","body":"Can you post a sample? It would also be good to know what browser/device(s) this happens in."}}