{"action":"closed","issue":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1631","labels_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1631/labels{/name}","comments_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1631/comments","events_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1631/events","html_url":"https://github.com/adobe-photoshop/spaces-design/issues/1631","id":89944051,"number":1631,"title":"Zooming and centering commands almost always set the transform twice","user":{"login":"iwehrman","id":1075154,"avatar_url":"https://avatars.githubusercontent.com/u/1075154?v=3","gravatar_id":"","url":"https://api.github.com/users/iwehrman","html_url":"https://github.com/iwehrman","followers_url":"https://api.github.com/users/iwehrman/followers","following_url":"https://api.github.com/users/iwehrman/following{/other_user}","gists_url":"https://api.github.com/users/iwehrman/gists{/gist_id}","starred_url":"https://api.github.com/users/iwehrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwehrman/subscriptions","organizations_url":"https://api.github.com/users/iwehrman/orgs","repos_url":"https://api.github.com/users/iwehrman/repos","events_url":"https://api.github.com/users/iwehrman/events{/privacy}","received_events_url":"https://api.github.com/users/iwehrman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/labels/Fix%20in%20progress","name":"Fix in progress","color":"bfe5bf"},{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/labels/Low%20Pri","name":"Low Pri","color":"c7def8"},{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/labels/Performance","name":"Performance","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-21T18:35:32Z","updated_at":"2016-01-12T23:42:58Z","closed_at":"2016-01-12T23:42:58Z","body":"The zooming and centering commands play an action descriptor to set the pan and zoom information, and then call `updateTransform`, which fetches the current window transform from Photoshop, and then emits a flux event to update the store. But the \"scroll\" event handler emits the same event, and these calls almost always cause a scroll event to be emitted, unless they are no-ops w.r.t. to the window transform. The `updateTransform` calls could be removed, except in this no-op edge case the bounds overlays would not be re-enabled. There must be some straightforward workaround for this to eliminate this duplication of effort."}}