{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/3405","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/3405/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/3405/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/3405/events","html_url":"https://github.com/kangax/fabric.js/issues/3405","id":188250682,"number":3405,"title":"Deleting large chunks of text causes a significant lag.","user":{"login":"belfz","id":5827079,"avatar_url":"https://avatars.githubusercontent.com/u/5827079?v=3","gravatar_id":"","url":"https://api.github.com/users/belfz","html_url":"https://github.com/belfz","followers_url":"https://api.github.com/users/belfz/followers","following_url":"https://api.github.com/users/belfz/following{/other_user}","gists_url":"https://api.github.com/users/belfz/gists{/gist_id}","starred_url":"https://api.github.com/users/belfz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belfz/subscriptions","organizations_url":"https://api.github.com/users/belfz/orgs","repos_url":"https://api.github.com/users/belfz/repos","events_url":"https://api.github.com/users/belfz/events{/privacy}","received_events_url":"https://api.github.com/users/belfz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-09T13:44:23Z","updated_at":"2016-11-09T14:13:03Z","closed_at":null,"body":"## Version\r\n1.6.6\r\n\r\n## Test Case\r\nhttp://jsfiddle.net/2qa39t6g/2/\r\n\r\n## Steps to reproduce\r\n1. Click on the text and make sure the cursor is displayed.\r\n2. Hit ctrl+a (cmd+a on macOS) to select all the text.\r\n3. Hit backspace on your keyboard.\r\n\r\n## Expected Behavior\r\nThe text should be removed immediately.\r\n\r\n## Actual Behavior\r\nThere is a noticeable lag when removing large chunks of text.\r\nThis is caused by a time-expensive call to `this._splitTextIntoLines()` inside `fabric.IText.prototype._removeSingleCharAndStyle` (which is called for every character eligible for removal).\r\n\r\nI will send a Pull Request shortly."},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/259423523","html_url":"https://github.com/kangax/fabric.js/issues/3405#issuecomment-259423523","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/3405","id":259423523,"user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T14:13:03Z","updated_at":"2016-11-09T14:13:03Z","body":"that is the same reason why pasting is slow.\r\nsadly this is the only way to make text style work in any condition. if you try to change some code be aware of complicated style situation and necessity of shifting styles with chars deleted."}}
{"actor":{"display_login":"asturur"}}