{"action":"created","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/1374","repository_url":"https://api.github.com/repos/quilljs/quill","labels_url":"https://api.github.com/repos/quilljs/quill/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/1374/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/1374/events","html_url":"https://github.com/quilljs/quill/issues/1374","id":215923110,"number":1374,"title":"Pasting in content causes scroll to \"jump\" before going back to original position","user":{"login":"sferoze","id":3514912,"avatar_url":"https://avatars1.githubusercontent.com/u/3514912?v=4","gravatar_id":"","url":"https://api.github.com/users/sferoze","html_url":"https://github.com/sferoze","followers_url":"https://api.github.com/users/sferoze/followers","following_url":"https://api.github.com/users/sferoze/following{/other_user}","gists_url":"https://api.github.com/users/sferoze/gists{/gist_id}","starred_url":"https://api.github.com/users/sferoze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sferoze/subscriptions","organizations_url":"https://api.github.com/users/sferoze/orgs","repos_url":"https://api.github.com/users/sferoze/repos","events_url":"https://api.github.com/users/sferoze/events{/privacy}","received_events_url":"https://api.github.com/users/sferoze/received_events","type":"User","site_admin":false},"labels":[{"id":10524462,"url":"https://api.github.com/repos/quilljs/quill/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-03-22T00:59:06Z","updated_at":"2017-10-05T06:52:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The Quill editor I am using auto grows as the user types. I also have multiple notes (Quill editors) on the screen at a time. I am using the scrollingContainer option correctly. \r\n\r\nAfter pasting in content, Quill does resume the original scroll position but only after the screen flickers a bit. (This is because the scroll jumps to another location and then it set back right away, which causes the screen to \"jump\" or \"flicker\") \r\n\r\nOn mobile it is even worse, as the jump it very noticeable. \r\n\r\nSo the original scroll position is resumed but it looks very janky. Users will feel like the app is not solid with this side effect. Any advice on how to prevent this? \r\n\r\n**Steps for Reproduction**\r\n\r\n1. Visit the quill demo page with auto grow and scrolling container\r\n2. Try pasting in content into the middle of the document. Try both on desktop and mobile\r\n3. You will notice the scroll area jump or flicker but then go back to it's original position. \r\n\r\n**Expected behavior**:\r\n\r\nWhen pasting in content, there should be no flicker, jumping, flashes or what not. It should be stable and just accept the content like pasting in Word, or any other text editing program. \r\n\r\n**Actual behavior**:\r\n\r\nThe screen jumps or flashes when pasting in content, but after it resumes its original scroll position. The issue here is the flash or jump which makes the app feel janky. \r\n\r\n**Platforms**:\r\n\r\nChrome and Safari \r\n\r\n**Version**:\r\n\r\n1.2.2\r\n"},"comment":{"url":"https://api.github.com/repos/quilljs/quill/issues/comments/334375098","html_url":"https://github.com/quilljs/quill/issues/1374#issuecomment-334375098","issue_url":"https://api.github.com/repos/quilljs/quill/issues/1374","id":334375098,"user":{"login":"jhchen","id":192974,"avatar_url":"https://avatars0.githubusercontent.com/u/192974?v=4","gravatar_id":"","url":"https://api.github.com/users/jhchen","html_url":"https://github.com/jhchen","followers_url":"https://api.github.com/users/jhchen/followers","following_url":"https://api.github.com/users/jhchen/following{/other_user}","gists_url":"https://api.github.com/users/jhchen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhchen/subscriptions","organizations_url":"https://api.github.com/users/jhchen/orgs","repos_url":"https://api.github.com/users/jhchen/repos","events_url":"https://api.github.com/users/jhchen/events{/privacy}","received_events_url":"https://api.github.com/users/jhchen/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T06:52:35Z","updated_at":"2017-10-05T06:52:35Z","author_association":"OWNER","body":"> why can we not set the scrolling container to window\r\n\r\nNot sure what this means. Quill also does not use jQuery and cannot add it as a project dependency but now sure if the above misunderstanding would have clarified this example"}}
{"actor":{"display_login":"jhchen"}}