Opened 11 years ago
Closed 11 years ago
#11960 closed Bug (fixed)
[Webkit/Blink] Editor should scroll to selection on BACKSPACE/DEL
Reported by: | Olek Nowodziński | Owned by: | Olek Nowodziński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.2 |
Component: | General | Version: | 4.4.1 |
Keywords: | Cc: |
Description
Custom BACKSPACE/DEL support implemented in #11861 lacks viewport scrolling. It's an ugly UX flaw, especially when the new position of the caret is in an element, which visually does not follow the block that holds the caret at the moment of keypress, i.e. in a floated table or a block out of viewport.
Attachments (1)
Change History (5)
comment:1 Changed 11 years ago by
Owner: | set to Olek Nowodziński |
---|---|
Status: | new → assigned |
Changed 11 years ago by
Attachment: | 11960.html added |
---|
comment:2 Changed 11 years ago by
Status: | assigned → review |
---|
comment:3 Changed 11 years ago by
Status: | review → review_passed |
---|
The method seems to work well for this case but I also remember that it was very tricky to scroll correctly viewport and all possible nested scrollable elements.
There are many cases in which we handle backspace, but we don't scroll to the caret. I decided that since we've got doubts about this method's stability and that in other cases we also have to care about other browsers, we can enhance only this single case. It will be some kind of test for this method and we can consider using it in other cases too.
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Merged to master with git:4d351f6.
Pushed fix to branch:t/11960. Let's see if it is OK first. I remember that
range.scrollIntoView()
was one little troublemaker some time ago.Editor playground attached.