{"action":"opened","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/5821","repository_url":"https://api.github.com/repos/openlayers/ol3","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/5821/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/5821/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/5821/events","html_url":"https://github.com/openlayers/ol3/issues/5821","id":174465735,"number":5821,"title":"bug in forEachLayerAtPixel on mobile devices","user":{"login":"tamaspaksi","id":21364343,"avatar_url":"https://avatars.githubusercontent.com/u/21364343?v=3","gravatar_id":"","url":"https://api.github.com/users/tamaspaksi","html_url":"https://github.com/tamaspaksi","followers_url":"https://api.github.com/users/tamaspaksi/followers","following_url":"https://api.github.com/users/tamaspaksi/following{/other_user}","gists_url":"https://api.github.com/users/tamaspaksi/gists{/gist_id}","starred_url":"https://api.github.com/users/tamaspaksi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamaspaksi/subscriptions","organizations_url":"https://api.github.com/users/tamaspaksi/orgs","repos_url":"https://api.github.com/users/tamaspaksi/repos","events_url":"https://api.github.com/users/tamaspaksi/events{/privacy}","received_events_url":"https://api.github.com/users/tamaspaksi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-01T08:31:05Z","updated_at":"2016-09-01T08:31:05Z","closed_at":null,"body":"I have implemented a tooltip function with popups with forEachLayerAtPixel function. It works fine on desktop PC's, but most of mobile devices not. The forEachLayerAtPixel works fine on icon and polygon but on images is founded the image layer not in correct place. If i click a little left-buttom near the image, then the layer is founded, so the place (founded layers on a pixel) is calculated wrong in case of images. (I think the difference, that icon and polygon are vector layers, but the image not.) After some analyse we have found, that it caused, when the css ratio is not 1 (window.devicePixelRatio <> 1). \r\n\r\n+ at rotation (alt+shift+mouse) it works faulty also on desktop! The calculated place remaining somewhere on the original place, it's not moving with the picture.\r\n\r\nI've attached a sample program:\r\n[popup-1.zip](https://github.com/openlayers/ol3/files/449112/popup-1.zip)\r\n\r\n"}}
{"actor":{"display_login":"tamaspaksi"}}