{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/3238","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/3238/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/3238/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/3238/events","html_url":"https://github.com/kangax/fabric.js/issues/3238","id":175482963,"number":3238,"title":"Missing canvas event \"object:deselected\"","user":{"login":"Fidel90","id":12855941,"avatar_url":"https://avatars.githubusercontent.com/u/12855941?v=3","gravatar_id":"","url":"https://api.github.com/users/Fidel90","html_url":"https://github.com/Fidel90","followers_url":"https://api.github.com/users/Fidel90/followers","following_url":"https://api.github.com/users/Fidel90/following{/other_user}","gists_url":"https://api.github.com/users/Fidel90/gists{/gist_id}","starred_url":"https://api.github.com/users/Fidel90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fidel90/subscriptions","organizations_url":"https://api.github.com/users/Fidel90/orgs","repos_url":"https://api.github.com/users/Fidel90/repos","events_url":"https://api.github.com/users/Fidel90/events{/privacy}","received_events_url":"https://api.github.com/users/Fidel90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-07T11:52:08Z","updated_at":"2016-09-08T06:47:27Z","closed_at":null,"body":"I know when selecting an object canvas fires `object:selected` and when deselecting a single object it fires `selection:cleared`. I think this is misleading at best.\r\n\r\nAs there are events for selecting a single object (`object:selected` / `selected`) I would expect the given `deselected` for objects to have its counterpart `object:deselected` on canvas as well.\r\n\r\nInstead it fires `selection:cleared` which I would expect only to fire when a selection (grouping by user) is cleared. Well, it fires `selection:created` for grouping, doesn't it?\r\n\r\nSo, IMO, at least one event is missing and given events sometimes do wrong things. I think better would be:\r\n\r\nA single object gets selected -> fire `object:selected` and `selected`.\r\nA single object gets deselected -> fire `object:deselected` and `deselected`.\r\nUser creates a grouping of objects -> fire `selection:created`.\r\nUser ungroups -> fire `selection:cleared`."},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/245508775","html_url":"https://github.com/kangax/fabric.js/issues/3238#issuecomment-245508775","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/3238","id":245508775,"user":{"login":"Fidel90","id":12855941,"avatar_url":"https://avatars.githubusercontent.com/u/12855941?v=3","gravatar_id":"","url":"https://api.github.com/users/Fidel90","html_url":"https://github.com/Fidel90","followers_url":"https://api.github.com/users/Fidel90/followers","following_url":"https://api.github.com/users/Fidel90/following{/other_user}","gists_url":"https://api.github.com/users/Fidel90/gists{/gist_id}","starred_url":"https://api.github.com/users/Fidel90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fidel90/subscriptions","organizations_url":"https://api.github.com/users/Fidel90/orgs","repos_url":"https://api.github.com/users/Fidel90/repos","events_url":"https://api.github.com/users/Fidel90/events{/privacy}","received_events_url":"https://api.github.com/users/Fidel90/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T06:47:26Z","updated_at":"2016-09-08T06:47:26Z","body":"Dividing object and group deselection would be a great thing for 2.0 :+1:  For now I'm fine with my workaround. As said, it works but feels wrong and inconsistent among the other events."}}
{"actor":{"display_login":"Fidel90"}}