{"action":"created","issue":{"url":"https://api.github.com/repos/moagrius/TileView/issues/338","repository_url":"https://api.github.com/repos/moagrius/TileView","labels_url":"https://api.github.com/repos/moagrius/TileView/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/moagrius/TileView/issues/338/comments","events_url":"https://api.github.com/repos/moagrius/TileView/issues/338/events","html_url":"https://github.com/moagrius/TileView/issues/338","id":172317412,"number":338,"title":"MinimumScaleMode.Fit and coordinates","user":{"login":"krabo0om","id":3706149,"avatar_url":"https://avatars.githubusercontent.com/u/3706149?v=3","gravatar_id":"","url":"https://api.github.com/users/krabo0om","html_url":"https://github.com/krabo0om","followers_url":"https://api.github.com/users/krabo0om/followers","following_url":"https://api.github.com/users/krabo0om/following{/other_user}","gists_url":"https://api.github.com/users/krabo0om/gists{/gist_id}","starred_url":"https://api.github.com/users/krabo0om/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krabo0om/subscriptions","organizations_url":"https://api.github.com/users/krabo0om/orgs","repos_url":"https://api.github.com/users/krabo0om/repos","events_url":"https://api.github.com/users/krabo0om/events{/privacy}","received_events_url":"https://api.github.com/users/krabo0om/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-21T11:49:26Z","updated_at":"2016-08-23T12:20:07Z","closed_at":null,"body":"Hey,\r\nthanks to @tsuijten and @peterLaurence  PR #318 introduced the `MinimumScaleMode.Fit` mode adding whitespaces when totally zoomed out.\r\nHowever, this broke the coordinates of tap events. A short example:\r\n_Lets say I have an image of 1000 width * 500 height and set `MinimumScaleMode.FIT`. Zoomed totally in at 1.0 and tapping the lower right I get x,y of 1000,500. Fine.\r\nZooming out it adds the whitespaces and centres the image, also fine. However, if I tap the lower right now I get x,y of something like 1000,2500 because the added whitespace._\r\nThis offset is calculated in `ZoomPanLayout.onLayout()` with `translateX` and `translateY` and should be used to offset the `MotionEvent` the `onTouchEvent()` gets.\r\n"},"comment":{"url":"https://api.github.com/repos/moagrius/TileView/issues/comments/241712886","html_url":"https://github.com/moagrius/TileView/issues/338#issuecomment-241712886","issue_url":"https://api.github.com/repos/moagrius/TileView/issues/338","id":241712886,"user":{"login":"krabo0om","id":3706149,"avatar_url":"https://avatars.githubusercontent.com/u/3706149?v=3","gravatar_id":"","url":"https://api.github.com/users/krabo0om","html_url":"https://github.com/krabo0om","followers_url":"https://api.github.com/users/krabo0om/followers","following_url":"https://api.github.com/users/krabo0om/following{/other_user}","gists_url":"https://api.github.com/users/krabo0om/gists{/gist_id}","starred_url":"https://api.github.com/users/krabo0om/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krabo0om/subscriptions","organizations_url":"https://api.github.com/users/krabo0om/orgs","repos_url":"https://api.github.com/users/krabo0om/repos","events_url":"https://api.github.com/users/krabo0om/events{/privacy}","received_events_url":"https://api.github.com/users/krabo0om/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T12:20:07Z","updated_at":"2016-08-23T12:20:07Z","body":"there might be a new bug with callouts and `clipChildren=true`:\r\n[![disappearing callout](https://s14.postimg.org/irt0pr5s1/ezgif_com_resize.gif)](https://postimg.org/image/if1mjkni5/)\r\nSo when I show the callout I pull data from a server, the progress bar shows that. After that's done I set the visibility of the progress bar to `View.GONE` resulting in a new layout phase. The view itself stays visible and it's position isn't changed, however, it disappears (after the progress bar is gone) when it's not inside the `MarkerLayout` any longer.\r\nI guess that the systems hides the view because it left the parent. \r\n"}}
{"actor":{"display_login":"krabo0om"}}