-
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
Editor jumps to top when clicking formatting buttons #288
Comments
I've worked around this problem by using |
Thanks for the workaround :) |
I'm also seeing this on Chromium 48.0.2564.97, but not not Firefox. Can we reopen the issue? Oh, and also, it only happens if you move the cursor as you hold the mouse-button down. |
I'm not able to reproduce on Chrome with http://quilljs.com/examples/. |
Strange. It's not working here. Maybe Chromium ≠ Chrome? This is what I'm doing:
Note that a single click without moving the cursor a tiny bit (like you often might accidentally do on touchpads) does not trigger problem. If you're still not able to reproduce, I can try and make a pretty screenshot animation like you did and give you guys more information for bug-hunting. I would be happy if I could use the button-workaround (it's working in the Basic Example above), but the problem still persists for Text Color ( |
I can confirm this is happening in Google Chrome 48.0.2564.109 on Mac OS X 10.10.5. Please note that as @kristianlm has said you must drag while clicking the button. |
Has anyone actually ever managed to find a solution for this? We are still experiencing the same bug in both Safari and Chrome. It's been 6 years since the bug was first reported. Could anyone point me to a working fix? |
Setting scrollingContainer to html was the only solution that worked for me: var quill = new Quill('#editor', { |
If you've got a long text and you set up Quill so the toolbar is always accessible while you scroll down, changing the format of the text when scrolled will jump the editor back to the top. This only happens with the toolbar buttons, changing format programmatically does not show this behavior.
This issue is even present on the main quilljs.com homepage. Desktop Safari 7.1.2
The text was updated successfully, but these errors were encountered: