{"action":"created","issue":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1617","labels_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1617/labels{/name}","comments_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1617/comments","events_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1617/events","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1617","id":89410664,"number":1617,"title":"Switch back to Photoshop transform controls","user":{"login":"volfied","id":386714,"avatar_url":"https://avatars.githubusercontent.com/u/386714?v=3","gravatar_id":"","url":"https://api.github.com/users/volfied","html_url":"https://github.com/volfied","followers_url":"https://api.github.com/users/volfied/followers","following_url":"https://api.github.com/users/volfied/following{/other_user}","gists_url":"https://api.github.com/users/volfied/gists{/gist_id}","starred_url":"https://api.github.com/users/volfied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volfied/subscriptions","organizations_url":"https://api.github.com/users/volfied/orgs","repos_url":"https://api.github.com/users/volfied/repos","events_url":"https://api.github.com/users/volfied/events{/privacy}","received_events_url":"https://api.github.com/users/volfied/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-18T22:17:13Z","updated_at":"2015-06-19T16:54:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/pulls/1617","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1617","diff_url":"https://github.com/adobe-photoshop/spaces-design/pull/1617.diff","patch_url":"https://github.com/adobe-photoshop/spaces-design/pull/1617.patch"},"body":"Main change is getting rid of our HTML rotate / resize controls. Pour one out for them :beer:\r\n\r\nThis change brings couple hacks with it.\r\n\r\n - We now have a \"border policy\". It's not an immigration thing, but alongside transform controls we have to let Photoshop have the mouse events and inside the selection we need to handle clicks so we can select layers inside/behind a selection.\r\n\r\n - There is a new policy in town, and it's name is `ALPHA_PROPAGATE_WITH_ADVISE`. This policy acts like alpha propagate, sending mouse events to either Photoshop or us, depending on if we have a non-transparent pixel underneath the cursor. But, if Photoshop gets the event, we get an `external_mouse_move` event from Photoshop OS notifiers. We use these events to let PS drive all cursors and mouse moves, but still be able to highlight our own superselect overlays.\r\n\r\n- I stole the \"move\" handler from superselect dragging, and installed it for `transform` events, which happen when a selection gets resized/rotated through Photoshop.\r\n\r\nThis change is also quite likely to bring a lot of bugs with it, @chadrolfs @ktaki, if you guys can do some runs before merging and report back on the PR with bugs, it would help us land it smoothly.\r\n\r\nTransform Scrim, good night sweet prince. You were my favorite feature."},"comment":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/comments/113573885","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1617#issuecomment-113573885","issue_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1617","id":113573885,"user":{"login":"chadrolfs","id":8442631,"avatar_url":"https://avatars.githubusercontent.com/u/8442631?v=3","gravatar_id":"","url":"https://api.github.com/users/chadrolfs","html_url":"https://github.com/chadrolfs","followers_url":"https://api.github.com/users/chadrolfs/followers","following_url":"https://api.github.com/users/chadrolfs/following{/other_user}","gists_url":"https://api.github.com/users/chadrolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/chadrolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadrolfs/subscriptions","organizations_url":"https://api.github.com/users/chadrolfs/orgs","repos_url":"https://api.github.com/users/chadrolfs/repos","events_url":"https://api.github.com/users/chadrolfs/events{/privacy}","received_events_url":"https://api.github.com/users/chadrolfs/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T16:54:41Z","updated_at":"2015-06-19T16:54:41Z","body":"If I select an AB and then move my mouse away, I now have the AB tool. "}}