{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/109","repository_url":"https://api.github.com/repos/mzabriskie/react-draggable","labels_url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/109/comments","events_url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/109/events","html_url":"https://github.com/mzabriskie/react-draggable/issues/109","id":115070605,"number":109,"title":"you can't update the start positions on the axis the DraggableCore is allowed to move","user":{"login":"talkhot","id":9306364,"avatar_url":"https://avatars.githubusercontent.com/u/9306364?v=3","gravatar_id":"","url":"https://api.github.com/users/talkhot","html_url":"https://github.com/talkhot","followers_url":"https://api.github.com/users/talkhot/followers","following_url":"https://api.github.com/users/talkhot/following{/other_user}","gists_url":"https://api.github.com/users/talkhot/gists{/gist_id}","starred_url":"https://api.github.com/users/talkhot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talkhot/subscriptions","organizations_url":"https://api.github.com/users/talkhot/orgs","repos_url":"https://api.github.com/users/talkhot/repos","events_url":"https://api.github.com/users/talkhot/events{/privacy}","received_events_url":"https://api.github.com/users/talkhot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T14:54:43Z","updated_at":"2016-05-19T16:52:27Z","closed_at":"2016-05-19T16:52:27Z","body":"If you wanne update the Draggable(Core) elements position, for instance if you want the element to get back to its start position when dragging ends, you can only set the position of the opposite axis you would like to update. So I would like to be able to drag only the x axis and update the x postion on state change. In version v0.8.5 this functions still like you expected, but in version 1.0.1 it acs like shown below (you can't change the axis you drag).\r\n\r\n```\r\naxis='x'\r\nstart={ { x: (you can not dynamically change position), y: (here you can) } }\r\n\r\n// or in my use case I want to set the x position basted on the state. The elm won't update now on state change. \r\naxis='x'\r\nstart={ { x: this.state.xPos, y: 0 } }\r\n\r\nnow it will but shouldn't\r\naxis='y'\r\nstart={ { x: this.state.xPos, y: 0 } }\r\n```"},"comment":{"url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/comments/220385547","html_url":"https://github.com/mzabriskie/react-draggable/issues/109#issuecomment-220385547","issue_url":"https://api.github.com/repos/mzabriskie/react-draggable/issues/109","id":220385547,"user":{"login":"STRML","id":1197375,"avatar_url":"https://avatars.githubusercontent.com/u/1197375?v=3","gravatar_id":"","url":"https://api.github.com/users/STRML","html_url":"https://github.com/STRML","followers_url":"https://api.github.com/users/STRML/followers","following_url":"https://api.github.com/users/STRML/following{/other_user}","gists_url":"https://api.github.com/users/STRML/gists{/gist_id}","starred_url":"https://api.github.com/users/STRML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STRML/subscriptions","organizations_url":"https://api.github.com/users/STRML/orgs","repos_url":"https://api.github.com/users/STRML/repos","events_url":"https://api.github.com/users/STRML/events{/privacy}","received_events_url":"https://api.github.com/users/STRML/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T16:52:27Z","updated_at":"2016-05-19T16:52:27Z","body":"You can now adjust this in `2.x` by setting the element's `position.x` or `position.y` independently of whether or not `axis` is defined."}}