-
Notifications
You must be signed in to change notification settings - Fork 246
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
Paint multiple user selections (Resolves #631) #633
base: main
Are you sure you want to change the base?
Conversation
@roughike @miguelcmedeiros - Do you guys wanna give this PR a try for multi-user selection and see how it works? It's probably a good idea to make sure it works the way you want it to, before investing more effort. |
Hey @matthew-carroll, the API looks like exactly what we need - can you rebase the PR so that it would be easier to take it for a test run? |
d935ba4
to
3c01bfe
Compare
@roughike I just rebased |
Played around with this a bit.
I wrapped the var i = 0;
Timer.periodic(const Duration(seconds: 1), (_) {
i++;
print(i);
_composer.setNonPrimarySelection(
"john",
DocumentSelection(
base: DocumentPosition(
nodeId: nodeId,
nodePosition:
TextNodePosition.fromTextPosition(TextPosition(offset: i)),
),
extent: DocumentPosition(
nodeId: nodeId,
nodePosition:
TextNodePosition.fromTextPosition(TextPosition(offset: 50)),
),
),
);
}); I expected that the selection start would update every second, but that does not happen.
Nayttotallennus.2022-7-20.kello.14.35.45.mov |
3c01bfe
to
723fcf0
Compare
@roughike I pushed a fix for the two issues you mentioned. Give it another try and let me know if it works for you. |
@matthew-carroll works! |
…n change re-painting and removed the non-primary caret.
…carets from image and HR view models.
@roughike @miguelcmedeiros - Should we merge these changes, or do you think that we need to implement more multi-user selections in this PR before we can be confident in the changes? |
Paint multiple user selections (Resolves #631)
The selections are configured as per #604