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

Need a whole pile of functions and events for measuring / scrolling #8

Open
jbt opened this issue May 30, 2015 · 1 comment
Open

Need a whole pile of functions and events for measuring / scrolling #8

jbt opened this issue May 30, 2015 · 1 comment

Comments

@jbt
Copy link
Owner

jbt commented May 30, 2015

A few events and methods look like they're gonna be essential to implement nice chained scrolling in a side-by-side editor:

  • Get the Y-position of a given line or collection of lines (also, how does this work with wrapping?)
  • Scroll to a given Y position
  • Get the current scroll state + view dimensions
  • Fire events on scroll

All but the first one are of course possible with standard DOM events. Being able to measure to a certain line or collection without thrashing layout could be somewhat trickier.

@jbt
Copy link
Owner Author

jbt commented Jul 8, 2015

Grabbing cursor position (both pixel x/y and character offset) too

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

No branches or pull requests

1 participant