{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2530","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2530/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2530/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2530/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2530","id":123196488,"number":2530,"title":"Handle touch drag on viewports, fixes #2091","user":{"login":"samdroid-apps","id":6022042,"avatar_url":"https://avatars.githubusercontent.com/u/6022042?v=3","gravatar_id":"","url":"https://api.github.com/users/samdroid-apps","html_url":"https://github.com/samdroid-apps","followers_url":"https://api.github.com/users/samdroid-apps/followers","following_url":"https://api.github.com/users/samdroid-apps/following{/other_user}","gists_url":"https://api.github.com/users/samdroid-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/samdroid-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdroid-apps/subscriptions","organizations_url":"https://api.github.com/users/samdroid-apps/orgs","repos_url":"https://api.github.com/users/samdroid-apps/repos","events_url":"https://api.github.com/users/samdroid-apps/events{/privacy}","received_events_url":"https://api.github.com/users/samdroid-apps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-21T01:59:37Z","updated_at":"2016-01-13T19:11:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2530","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2530","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2530.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2530.patch"},"body":"This commit makes it possible to drag a viewport around with touch.\r\nThe user can drag if they start without a ride, shop, etc under\r\ntheir touch.  This reuses the code of the right mouse button viewport\r\nmovement, although adding a new flag to indicate touch behavious\r\n(as well as not relying on moving the cursor)."},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/171401367","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2530#issuecomment-171401367","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2530","id":171401367,"user":{"login":"marijnvdwerf","id":737603,"avatar_url":"https://avatars.githubusercontent.com/u/737603?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnvdwerf","html_url":"https://github.com/marijnvdwerf","followers_url":"https://api.github.com/users/marijnvdwerf/followers","following_url":"https://api.github.com/users/marijnvdwerf/following{/other_user}","gists_url":"https://api.github.com/users/marijnvdwerf/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnvdwerf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnvdwerf/subscriptions","organizations_url":"https://api.github.com/users/marijnvdwerf/orgs","repos_url":"https://api.github.com/users/marijnvdwerf/repos","events_url":"https://api.github.com/users/marijnvdwerf/events{/privacy}","received_events_url":"https://api.github.com/users/marijnvdwerf/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T19:11:58Z","updated_at":"2016-01-13T19:11:58Z","body":"Wouldn't it make more sense to only interact with something on `touchend`? And only if the cursor hasn't moved `x` pixels (after which panning starts). Would be in line with Android, iOS and OS X behavior."}}