Skip to content
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

Fix cursor top position in multi-cursor module when the quill container is scrolled. #375

Merged
merged 1 commit into from
May 26, 2015

Conversation

igmcdowell
Copy link
Contributor

Cursors are absolutely positioned with respect to the top of the .ql-container.
quill.getBounds().top returns a smaller integer when the .ql-container is scrolled vertically.
As a result, positioning a cursor requires adding container.scrollTop to the cursor bounds.

is scrolled.

Cursors are absolutely positioned with respect to the top of the
.ql-container.
quill.getBounds().top returns a smaller integer when the .ql-container
is scrolled vertically.
As a result, positioning a cursor requires adding container.scrollTop to
the cursor bounds.
@igmcdowell
Copy link
Contributor Author

Here's a screenshot of the issue reproduced on http://quilljs.com/docs/modules/multi-cursors/
screen shot 2015-05-21 at 5 07 20 pm

jhchen added a commit that referenced this pull request May 26, 2015
Fix cursor top position in multi-cursor module when the quill container is scrolled
@jhchen jhchen merged commit cefcf6f into slab:develop May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants