-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Scroll position jumps when editor is inside of wrapper div #2166
Comments
CC @coxandrew |
Bump... I have the same issue. Any work-arounds for this? |
I can't reproduce this with the scrollingContainer set to tested with your codepen + Chrome Version 68.0.3440.106 |
Yep, still experiencing this in 2019. Only happens when the editor is contained in a wrapper. Guess the workaround is not to use a wrapper, though this limits the ability to use something like a flexbox to contain the editor and toolbar, for example. |
i have same problem |
Does anyone have a fix for this, yet? |
You can try it https://stackoverflow.com/a/45823484 |
Having this issue as well. Setting scrollingContainer to |
I have the same issue. Any updates? |
For anyone looking for a solution, I got it fixed by setting scrollingContainer to 'html'. My problem was caused by setting the toolbar to 'position: sticky', so that it would be always visible. |
Facing the same issue, not being able to wrap the editor in a div is a big deal imo... |
But you can. The workaround on StackOverflow posted by ImLuckyJr helped me:
|
@Doidel looks like it works |
If anyone is looking for a fix for this you can record the last selection range before your action that causes the scroll and then do |
this works but not for ql-tooltip (link, video, image..) |
Same here. |
Currently working on a project using Quill where we would like to have the toolbar be sticky as the user scrolls down the page (this provides a great experience for editing longer articles on both mobile and desktop).
The issue we've run into is that if the editor is wrapped inside another div, the scroll position jumps when editing the content, no matter how we configure the
scrollingContainer
:Steps for Reproduction
Setting scrollingContainer to a dedicated
#scrolling-container
element:Setting scrollingContainer to
html
:Works fine when editor is not wrapped inside a div:
Expected behavior:
Expected to not cause scroll position to jump when editor is inside a wrapper div and edits are performed.
Actual behavior:
Scroll position jumps up when
scrollingContainer
is set to a dedicated element, and down when set tohtml
.Platforms:
Version:
1.3.6
The text was updated successfully, but these errors were encountered: