{"action":"opened","issue":{"url":"https://api.github.com/repos/chrisbanes/PhotoView/issues/405","repository_url":"https://api.github.com/repos/chrisbanes/PhotoView","labels_url":"https://api.github.com/repos/chrisbanes/PhotoView/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/chrisbanes/PhotoView/issues/405/comments","events_url":"https://api.github.com/repos/chrisbanes/PhotoView/issues/405/events","html_url":"https://github.com/chrisbanes/PhotoView/issues/405","id":172343326,"number":405,"title":"Allow the use of custom OnTouchListener","user":{"login":"fkirc","id":17876666,"avatar_url":"https://avatars.githubusercontent.com/u/17876666?v=3","gravatar_id":"","url":"https://api.github.com/users/fkirc","html_url":"https://github.com/fkirc","followers_url":"https://api.github.com/users/fkirc/followers","following_url":"https://api.github.com/users/fkirc/following{/other_user}","gists_url":"https://api.github.com/users/fkirc/gists{/gist_id}","starred_url":"https://api.github.com/users/fkirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkirc/subscriptions","organizations_url":"https://api.github.com/users/fkirc/orgs","repos_url":"https://api.github.com/users/fkirc/repos","events_url":"https://api.github.com/users/fkirc/events{/privacy}","received_events_url":"https://api.github.com/users/fkirc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-21T21:46:37Z","updated_at":"2016-08-21T21:46:37Z","closed_at":null,"body":"In https://github.com/davemorrissey/subsampling-scale-image-view it is possible to assign a custom GestureDetector that works parallel to the gesture functions of the library.\r\n\r\nTherefore it is possible to use code like this:\r\n\r\n``` java\r\nmImageView.setOnTouchListener(new View.OnTouchListener() {\r\n            @Override\r\n            public boolean onTouch(View v, MotionEvent event){\r\n                // detect swipe gestures or any other gesture\r\n            }\r\n        })\r\n```\r\n\r\nHowever, this is not possible with PhotoView, since it assigns its own OnTouchListener directly in the PhotoViewAttacher constructor.\r\n\r\nI know that there are some helper methods like `mAttacher.setOnSingleFlingListener();` and `mAttacher.setOnDoubleTapListener();`, but if would be much more convenient if the standard interface could be used.\r\n\r\nIs there any plan to solve this issue?"}}
{"actor":{"display_login":"fkirc"}}