{"action":"created","issue":{"url":"https://api.github.com/repos/desandro/draggabilly/issues/123","repository_url":"https://api.github.com/repos/desandro/draggabilly","labels_url":"https://api.github.com/repos/desandro/draggabilly/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/desandro/draggabilly/issues/123/comments","events_url":"https://api.github.com/repos/desandro/draggabilly/issues/123/events","html_url":"https://github.com/desandro/draggabilly/pull/123","id":141536971,"number":123,"title":"Allows containment to be restricted to a single axis","user":{"login":"charliekassel","id":3069972,"avatar_url":"https://avatars.githubusercontent.com/u/3069972?v=3","gravatar_id":"","url":"https://api.github.com/users/charliekassel","html_url":"https://github.com/charliekassel","followers_url":"https://api.github.com/users/charliekassel/followers","following_url":"https://api.github.com/users/charliekassel/following{/other_user}","gists_url":"https://api.github.com/users/charliekassel/gists{/gist_id}","starred_url":"https://api.github.com/users/charliekassel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charliekassel/subscriptions","organizations_url":"https://api.github.com/users/charliekassel/orgs","repos_url":"https://api.github.com/users/charliekassel/repos","events_url":"https://api.github.com/users/charliekassel/events{/privacy}","received_events_url":"https://api.github.com/users/charliekassel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T10:12:34Z","updated_at":"2016-03-17T14:47:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/desandro/draggabilly/pulls/123","html_url":"https://github.com/desandro/draggabilly/pull/123","diff_url":"https://github.com/desandro/draggabilly/pull/123.diff","patch_url":"https://github.com/desandro/draggabilly/pull/123.patch"},"body":"My use case a gantt chart where I'd like the ability to drag outside the container on the x-axis but to be contained on the y-axis.\r\nMaybe an edge case but this PR allows containment restriction to be applied to a single axis.\r\n\r\nExample usage:\r\n```javascript\r\nvar draggie = new Draggabilly(document.querySelector('.draggable-element'), {\r\n   containment: document.querySelector('.wrapper-element'),\r\n   containmentAxis: 'y'\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/desandro/draggabilly/issues/comments/197911848","html_url":"https://github.com/desandro/draggabilly/pull/123#issuecomment-197911848","issue_url":"https://api.github.com/repos/desandro/draggabilly/issues/123","id":197911848,"user":{"login":"desandro","id":85566,"avatar_url":"https://avatars.githubusercontent.com/u/85566?v=3","gravatar_id":"","url":"https://api.github.com/users/desandro","html_url":"https://github.com/desandro","followers_url":"https://api.github.com/users/desandro/followers","following_url":"https://api.github.com/users/desandro/following{/other_user}","gists_url":"https://api.github.com/users/desandro/gists{/gist_id}","starred_url":"https://api.github.com/users/desandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desandro/subscriptions","organizations_url":"https://api.github.com/users/desandro/orgs","repos_url":"https://api.github.com/users/desandro/repos","events_url":"https://api.github.com/users/desandro/events{/privacy}","received_events_url":"https://api.github.com/users/desandro/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T14:47:57Z","updated_at":"2016-03-17T14:47:57Z","body":"Thank you for this contribution! This is a nice little addition. Like you said, it may be an edge case. I'll keep the PR open for a while in case others are interested\r\n\r\n**+1 or add a :+1: reaction to this issue** if you'd like to see this PR merged."}}