-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpage scrolls when view's DomConverter focuses an element #4068
Labels
Milestone
Comments
@oskarwrobel Do you think that moving to previously cached |
I'm afraid not. But restoring scroll only on window object doesn't fix it completely. We should create a manual test with few nested scrolled containers and check. |
oleq
referenced
this issue
in ckeditor/ckeditor5-engine
May 11, 2017
@oskarwrobel I extended the fix and it looks like it also works for editables with |
oleq
referenced
this issue
in ckeditor/ckeditor5-engine
May 12, 2017
oleq
changed the title
Webpage scrolls when view's DomConverter focuses an element in WebKit
Webpage scrolls when view's DomConverter focuses an element
May 12, 2017
Reinmar
referenced
this issue
in ckeditor/ckeditor5-engine
May 12, 2017
Fix: `DomConverter` should actively prevent unwanted scrolling on focus. Closes #951. Closes #707. Closes #706.
mlewand
added
module:view
type:bug
This issue reports a buggy (incorrect) behavior.
package:engine
labels
Oct 9, 2019
This was referenced Oct 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a WebKit-specific behavior that makes the web page scroll to the beginning when editing view is focused. I see no other solution than post-focus
window.scrollTo
to fix the position of the scrollbar.Note that Image text alternative balloon also suffers because of this.
A follow-up of https://github.com/ckeditor/ckeditor5-link/issues/100.
The text was updated successfully, but these errors were encountered: