{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/333","labels_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/333/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/333/events","html_url":"https://github.com/CartoDB/cartodb.js/issues/333","id":57312014,"number":333,"title":"Offset bug on touch devices when map is position fixed","user":{"login":"turban","id":548708,"avatar_url":"https://avatars.githubusercontent.com/u/548708?v=3","gravatar_id":"","url":"https://api.github.com/users/turban","html_url":"https://github.com/turban","followers_url":"https://api.github.com/users/turban/followers","following_url":"https://api.github.com/users/turban/following{/other_user}","gists_url":"https://api.github.com/users/turban/gists{/gist_id}","starred_url":"https://api.github.com/users/turban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turban/subscriptions","organizations_url":"https://api.github.com/users/turban/orgs","repos_url":"https://api.github.com/users/turban/repos","events_url":"https://api.github.com/users/turban/events{/privacy}","received_events_url":"https://api.github.com/users/turban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"fdansv","id":3707222,"avatar_url":"https://avatars.githubusercontent.com/u/3707222?v=3","gravatar_id":"","url":"https://api.github.com/users/fdansv","html_url":"https://github.com/fdansv","followers_url":"https://api.github.com/users/fdansv/followers","following_url":"https://api.github.com/users/fdansv/following{/other_user}","gists_url":"https://api.github.com/users/fdansv/gists{/gist_id}","starred_url":"https://api.github.com/users/fdansv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdansv/subscriptions","organizations_url":"https://api.github.com/users/fdansv/orgs","repos_url":"https://api.github.com/users/fdansv/repos","events_url":"https://api.github.com/users/fdansv/events{/privacy}","received_events_url":"https://api.github.com/users/fdansv/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-11T12:52:46Z","updated_at":"2015-02-18T12:35:39Z","closed_at":null,"body":"We're having trouble with the _findPos method in leaflet_cartodb_layergroup.js: \r\nhttps://github.com/CartoDB/cartodb.js/blob/develop/src/geo/leaflet/leaflet_cartodb_layergroup.js#L267\r\n\r\nThe bug occurs when we have our map in a position fixed div (we use this as pseudo fullscreen on our site). The position calculation fails on touch devices, and the popup is not shown (tested on Andorid and iPhone). \r\n\r\nTry this example on your mobile:\r\nhttp://thematicmapping.org/playground/cartodb/bugs/fixedpos.html\r\n\r\nScroll down to the map and click the fullscreen button. You'll see that popups on the CartoDB layer are not showing, while the Leaflet marker popup works. Everything works if the map div is not position fixed. \r\n\r\nRelated to this bug: https://github.com/CartoDB/cartodb.js/issues/114  "},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/comments/74857025","html_url":"https://github.com/CartoDB/cartodb.js/issues/333#issuecomment-74857025","issue_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/333","id":74857025,"user":{"login":"turban","id":548708,"avatar_url":"https://avatars.githubusercontent.com/u/548708?v=3","gravatar_id":"","url":"https://api.github.com/users/turban","html_url":"https://github.com/turban","followers_url":"https://api.github.com/users/turban/followers","following_url":"https://api.github.com/users/turban/following{/other_user}","gists_url":"https://api.github.com/users/turban/gists{/gist_id}","starred_url":"https://api.github.com/users/turban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turban/subscriptions","organizations_url":"https://api.github.com/users/turban/orgs","repos_url":"https://api.github.com/users/turban/repos","events_url":"https://api.github.com/users/turban/events{/privacy}","received_events_url":"https://api.github.com/users/turban/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T12:35:39Z","updated_at":"2015-02-18T12:35:39Z","body":"We're not using any of these plugins, our map don't work because of a bug in cartodb.js with maps in fixed position. It used to be a bug on all devices, but after https://github.com/CartoDB/cartodb.js/issues/114 was solved , it's now only on touch devices. The reason the mapbox plugin works is that they use the Fullscreen API, but we find it too obtrusive for our users. \r\n\r\nMy example above is just a minimal test case - you get the same error without the fullscreen pluging and just a fixed positioned div.\r\n\r\nExample maps on our site:\r\n1. http://www.nrk.no/norge/sa-syk-er-din-kommune-1.12194283\r\n2. http://www.nrk.no/norge/to-av-tre-politimestere-er-positive-til-det-nye-politikartet-1.12214918\r\n\r\nIn the first map the popup are shown but with an offset. In the second map the offset is far off the map.  We don't experience the same problems with Leaflet popups.  "}}