{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/4892","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4892/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4892/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4892/events","html_url":"https://github.com/pixijs/pixi.js/issues/4892","id":320261297,"number":4892,"title":"Masked sprite with another sprite still raises the interactivity events on hidden areas","user":{"login":"DavidGOrtega","id":414967,"avatar_url":"https://avatars2.githubusercontent.com/u/414967?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidGOrtega","html_url":"https://github.com/DavidGOrtega","followers_url":"https://api.github.com/users/DavidGOrtega/followers","following_url":"https://api.github.com/users/DavidGOrtega/following{/other_user}","gists_url":"https://api.github.com/users/DavidGOrtega/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGOrtega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGOrtega/subscriptions","organizations_url":"https://api.github.com/users/DavidGOrtega/orgs","repos_url":"https://api.github.com/users/DavidGOrtega/repos","events_url":"https://api.github.com/users/DavidGOrtega/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGOrtega/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-04T12:45:00Z","updated_at":"2018-05-04T15:54:55Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nIf I mask a sprite with another sprite generated both sprites with image textures, the masked sprite interactivity still arises in the hidden area.\r\n\r\nThis effect does not appear when you mask the sprite with a Sprite generated with a Graphics.\r\n\r\nMaybe this is related to #3151, #2252 and #4608?\r\n\r\nMaybe there is a setting to avoid this?\r\nIf not, why should be a Sprite generated with an image different from a sprite generated with a Graphics?\r\n\r\nIs there any way to resolve it without using hitArea? the poligon is actually very complex and I haven't found a physics hit editor that works with pixi yet."},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/386645138","html_url":"https://github.com/pixijs/pixi.js/issues/4892#issuecomment-386645138","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4892","id":386645138,"user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars2.githubusercontent.com/u/695831?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T15:54:55Z","updated_at":"2018-05-04T15:54:55Z","author_association":"MEMBER","body":"You are right, I was wrong: https://github.com/pixijs/pixi.js/blob/dev/src/core/sprites/Sprite.js#L385 , it has applyInverse inside.\r\n\r\nWhy dont you just use getImageData from temporary canvas where you draw `texture.baseTexture.source` ?"}}
{"actor":{"display_login":"ivanpopelyshev"}}