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
How do I scroll the editor to a position, not just a line? #2739
Comments
Position is an object like {row, column} so getting a line from it is easy by using position.row. |
I guess I'm on an older version where the position is just the character position, but that will be nice when I can upgrade. |
Must be something else, that code didn't change much from the very beginning. |
Thanks for the response! You're right about the Ace cursor API. I now think it has to do with my Firepad plugin doing something else weird with it, so there's nothing wrong on the Ace side. |
I'm using Ace for a collaborative editing experience and I want to be able to scroll to another user's cursor position.
I see that there are
editor.scrollToRow()
, andeditor.scrollToLine()
methods, but I can't seem to find any method that works with acursor
object that hasposition
andselectionEnd
properties.What I'd like is to be able to scroll to a position, not just a line. Or if there is a way to convert a position to a line that would be helpful too.
Thanks!
The text was updated successfully, but these errors were encountered: